Visual Studio 2012 - Sort it out!

Another default that has changed in Visual Studio 2012 is the sorting of using statements.

VS2010 used to place System namespaces first – which, while a little illogical, helps with StyleCop compliance, specifically SA1208.

In VS2012 you need to turn this option on via: TOOLS > Options > Text Editor > C# > Advanced > Place ‘System’ directives first when sorting usings.

This, when combined with CodeMaid’s “Automatically run cleanup on file save”, helps to keep you on the straight and narrow!

Comments

  1. This change sucks, thanks for the tip for how to change it back.

    ReplyDelete

Post a Comment