title: Automatic indentation of arguments list on multiple lines in Visual Studio
body: <p>When the list of arguments to a method grows to the point where they do not fit comfortably on one line, I like to format code such that each argument is on a separate line (following the <a href="https://en.wikipedia.org/wiki/StyleCop" rel="nofollow noreferrer">StyleCop</a> suggestion), like this:</p>
  <pre><code>public void MyMethod(
     int someArgument,
     double someOtherArgument,
     int someMoreArguments)
  </code></pre>
  <p>The problem I run into is that this formatting is &quot;fragile&quot; and does not get automatically reformatted when using <kbd>Ctrl</kbd> + <kbd>K</kbd> + <kbd>D</kbd>. For instance, if I happen to insert some spaces in front of one of the arguments, it doesn't get removed, and I end up doing some tedious manual reformatting.</p>
  <p>If I copy a method (say, to provide an overloaded signature), the argument indentation in the copy gets totally messy.
  I have a similar issue with <a href="https://en.wikipedia.org/wiki/Language_Integrated_Query" rel="nofollow noreferrer">LINQ</a> statements, which I also like to format on multiple lines, like:</p>
  <pre><code>myEnumerable.
     .Where(this and that)
     .Where(this and that)
     .FirstOrDefault();
  </code></pre>
  <p>I realize this is complete obsessive-compulsive formatting, and a very minor issue, but is there a way to make Visual Studio 2010 automatically reindent multi-line arguments following that pattern when it gets misaligned?</p>