Get rid of line breaks after class fields with attributes

Answered

I can't find any setting to prevent this:

From getting autoformated to this:

Is there a way to turn of the line break after the fields with attributes, but keep all the other attribute formatting?

1
3 comments

Hello Helge,

Please check setting for Preferences | Editor | Code Style | C# | Blank Lines | Blank lines in declarations | Around field, try setting it to 0. Let me know if that helps.

2

Amazing that did it without breaking anything else as far as I can tell. Thanks a lot for the quick reply.

1

Thank you Olga Diakonova . It was important for me.

0

Please sign in to leave a comment.