Organize using statements in Visual Studio 2008

While the June CTP (or Beta 1 refresh if you will) of Visual Studio 2008 is already out some time, I didn’t see anyone report on a new feature that was introduced: “Organize Usings”

When you right-click any code file, you get the usual context menu, now with an extra menu item:

Organize Usings

It does exactly what it says: remove any imports of namespaces that are not used in a particular code file and/or sort these alphabetically. You need to perform this action against every code file individually.

This will come in handy.

Advertisements
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s