With previous versions of Visual Studio, I used Kevin Pilch-Bisson\'s script to format all C# files in my solution.
VS2012 dropped macro support, so that doesn\'t work a
You can use CodeMaid, a free plugin for VS2012. That allow you to clean, reorganize your code. I always use it before checking my code with StyleCop