In Visual Studio 2017, you can clearly see what using statements you are not… using. The IDE grays them out for you. This is a nice touch, as it can get confusing as to what namespaces are actually in use. Especially after you’ve added some code, refactored, taken some things out. Those little orphaned using statements that are no longer needed become easy to see.
Want to get rid of them? No problem. Just go to Edit > IntelliSense > Organize Usings. From there you can choose to Remove Unnecessary Usings, Sort Usings, or Remove and Sort usings.
Here’s what it looks like after I’ve removed my unnecessary usings.
Pretty cool huh? I thought so. If you choose Sort Usings, it will sort them alphabetically for you. Here’s the before and after of that