How to stop code cleanup from adding line breaks to the attributes of method parameters?

I have controller methods with parameters that have attributes Like [FromRoute] and [FromQuery].
When I do a code cleanup, these attributes on their own lines. How to stop code cleanup from doing this? 
However I still want to have the attributes for class properies on their own lines.

0
1 comment

Thenrich2009, sorry for the long silence. I’m not sure I understood what your code looks like before and after the code cleanup. Please take a look at the options below - they may help you solve the issue.

  • ReSharper | Options | Code Editing | C# | Formatting Style | Line Breaks and Wrapping | Arrangement of method signatures | Wrap formal parameters
  • ReSharper | Options | Code Editing | C# | Formatting Style | Line Breaks and Wrapping | Arrangement of attributes | Place type attribute on the same line | Place method attribute on the same line

If the issue is still there, please attach screenshots of the code before and after the cleanup. Thank you!

0

Please sign in to leave a comment.