i have been using Power Commands for Visual Studio for a long time. but i had never noticed that it’s a got very good feature for automatically formatting the document on save. not only it can format the document, but also it can remove and sort using statements in the files when you save them.
it this really good for me because we use stylecop to enforce coding standard within our dev team.
it’s also good when you refactor your code and end up changing namespaces and class names.
to install the extension. click on the extension manager in the option menu.
then search for PowerCommands and select and install it from the list.
once the installation is done, click on tools then click on option menu.
from the options dialog box select PowerCommands and in the left hand side check the options you desire.
and you are good to go.