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 ...

Get Microsoft Visual Studio 2015 Unleashed, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.