views:

139

answers:

2

Hey all,

Is there a tool for Visual Studio that will automatically format source code (C#) on saving it? This would be useful for my multi-developer team to keep the code looking uniform, especially before the code is checked into the source control repository.

+3  A: 

CodeRush or ReSharper come to mind.

Oliver
+1  A: 

PowerCommands for Visual Studio: http://code.msdn.microsoft.com/PowerCommands

If you install the addin and look for PowerCommands under the Tools->Options menu, there's two tick boxes for "Format document on save" and "Remove and Sort Usings on save". It's one of my favourite addins for that exact functionality.

FacticiusVir