Resharper data annotation on single line

29 views Asked by At

Im kind of new to resharper; but old on c# I have a problem with the resharper config and on my team no ones knows how to solve it.

I have this:

 [Required]
 public ushort SemanticId { get; set; }

and every time that we make any modifications the Data Annotation and the prop goes into the same line; like this.

 [Required] public ushort SemanticId { get; set; }

Im using VS2022 and resharper 2023.2.2.

Best regards.

I have been searching on internet and cannot find a "solution" on this.

1

There are 1 answers

0
mu88 On BEST ANSWER

You can control this setting via ReSharper | Options | Code Editing | C# | Formatting Style | Line Breaks and Wrapping | Place property/indexer/event attribute on the same line: enter image description here