C
C#14mo ago
Bill

❔ What editorconfig setting would I use to force each property to a new line?

Which .editorconfig setting would I use to achieve the following: For example, I would like Content, Source, and Sender to be on a new line?
context.Messages.Add(new Message
{
Content = "Test", Source = "Discord", Sender = "Test"
});
context.Messages.Add(new Message
{
Content = "Test", Source = "Discord", Sender = "Test"
});
2 Replies
Bill
BillOP14mo ago
I found csharp_new_line_before_members_in_object_initializers, but doesn't seem to be working. dotnet_diagnostic.IDE0055.severity = warning Like this correct? Awesome, will try that thank you. There's no way to auto format it that way? It worked great and showed me a warning, Rider didn't fix the formatting automatically though I have dotnet format linting CI setup so that should work well Thank you so much for your help @VSCore Professional Express 2024
Accord
Accord14mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server