Eclipse Formatting for Visual Studio

Is there a tool for Visual Studio that will automatically format the source code (C #) when you save it? This would be useful for my multi-developer development team to make the code look consistent, especially before the code is checked out in the source control repository.

+2


source to share


3 answers


CodeRush or ReSharper come to mind.



+4


source


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



If you install the addin and look for PowerCommands under Tools-> Options, there are two checkboxes for "Format document on save" and "Remove and Sort Usings on save". This is one of my favorite add-ons for this exact functionality.

+1


source


Many (and me) use StyleCop and set it to parse files in an assembly, and I am setting a warning alert for it as an error, so problems must be resolved before the build succeeds.

I prefer this method as obfuscating liability to a third party that automatically erases the code without developer intervention. I feel like losing something by relying on this method could cause developers' code to get worse and worse if they don't even know about it.

It seems preferable for the developer to be notified of the problems and forced to fix them in order to hopefully improve their coding skills overall.

EDIT: I know this is an old post, I just thought my thoughts might be helpful to someone walking through this page.

0


source







All Articles