Auto format parameters one per line
-
21-12-2019 - |
Question
When I was using Visual Studio 2010 with an old version of Resharper (I was fairly new to Resharper then), I used to have an option that came up that allowed it to auto format parameters of a method to one per line when the parameters were not all on one line. Therefore, if there were a few parameters all on one line, in order to get them one per line, I would move the first one to a separate line which would then give me the option to format one per line. However, this option has since disappeared. I am now using Visual Studio 2012 with Resharper 7.1. I'm not sure what caused it but does anyone know how I can bring back the option?
TIA
Solution
Please check you have the following settings set up here ReSharper | Options | Code Editing | C# | Formatting Style | Line Breaks and Wrapping | Line Wrapping:
- Wrap formal parameters -> Chop always;
- Prefer wrap after "(" in declaration -> ticked;