Did you know… Remove unused using statements? - #240

This was tip #17 in my TechEd VS 2008 IDE Tips and Tricks Talk

In C#, there’s the option to remove any of your unused using statements.  This is especially helpful if you’re reusing some sort of template over and over again.  Instead of having to comment out each line, compile, see whether the compile was successful, then either remove or uncomment the line, you can bring up the editor context menu (just right click in the editor), and choose Organize Usings – Remove Unused Usings.   This will do all the hard work for you.

RemoveUnusedUsings

Technorati Tags: VS2008Tip