O'Reilly logo

Microsoft Visual Studio 2015 Unleashed, Third Edition by Mike Snell, Lars Powers

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Organize Usings

Organize Usings is a C# and Visual Basic IntelliSense item. It provides three separate functions: Remove Unnecessary Usings/Imports, Sort Usings/Imports, and Remove and Sort Usings/Imports (which combines the first two actions into one). All three commands live under the Organize Usings menu item on the editor shortcut menu or under the main Edit, IntelliSense menu.

The Remove Unused Usings/Imports function is a great aid for uncluttering your code. It scans through the current body of code and determines which Using/Import statements are necessary for the code to compile; it then removes all others. The Sort command is straightforward as well; it simply rearranges all your Using/Import statements so they appear in A–Z alphabetic ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required