How do I align ReSharpers "cleanup code" with Visual Studio's "format document"

Posted by Thomas Jespersen on Stack Overflow See other posts from Stack Overflow or by Thomas Jespersen
Published on 2010-04-25T19:45:15Z Indexed on 2010/05/10 21:24 UTC
Read the original article Hit count: 468

Filed under:
|

I'm a big fan of ReSharpers "cleanup code" feature. Especially the Solution wide clean up.

But I use Visual Studio's Ctrl+K+D (Format document), it formats the code slightly differed than ReSharper.

I'm on a quest to align ReSharper with Visual Studio (not the other way... because you can not share Visual Studio settings in the solution/source control system).

So I'm after something like this:

<Configuration>
  <CodeStyleSettings>
    <Sharing>SOLUTION</Sharing>
    <CSharp>
      <FormatSettings>
        <SPACE_AROUND_MULTIPLICATIVE_OP>True</SPACE_AROUND_MULTIPLICATIVE_OP>
        <SPACE_BEFORE_TYPEOF_PARENTHESES>False</SPACE_BEFORE_TYPEOF_PARENTHESES>
      </FormatSettings>
    </CSharp>
  </CodeStyleSettings>
</Configuration>

Which other settings will help ReSharper format code like Visual Studio?

© Stack Overflow or respective owner

Related posts about resharper

Related posts about visual-studio