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

Was it helpful?

Solution

Please check you have the following settings set up here ReSharper | Options | Code Editing | C# | Formatting Style | Line Breaks and Wrapping | Line Wrapping:

  1. Wrap formal parameters -> Chop always;
  2. Prefer wrap after "(" in declaration -> ticked;
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top