Wednesday, February 6, 2008

VS2008 - Organize usings

I read about a sweet feature built into Visual Studio 2008 this morning. It allows you to alphabetize the using statements at the beginning of your C# class. It can also remove using statements that are not necessary. All you have to do is right-click anywhere in your class, go to "Organize usings" and then click what you would like to do (Remove, Sort, or Remove and Sort). I'll post screenshots tomorrow and also post how to setup a keyboard shortcut to remove and sort.

EDIT: Here's the screenshot for organizing the usings.

0 comments: