Removing Unused Usings in Visual Studio 2012
Edit
Many time in developing an application I will switch to use different library of the same functionality. The result would be included many unused using in the header of a C# file. I always dream of a lazy way to remove those used / legacy using statement, but I haven't tried hard to find a solution for it. Yet today I found there is an out of the box solution from VS2012 and it is extra easy to use.
Just go to the using statements section in the C# file, right click > find "Organize Usings" > "Remove Unused Usings"
It will automatically remove any unused statement of that C# file for you. Go and try clean up your C# file now!
Reference : Removing Unused Usings
Just go to the using statements section in the C# file, right click > find "Organize Usings" > "Remove Unused Usings"
It will automatically remove any unused statement of that C# file for you. Go and try clean up your C# file now!
Reference : Removing Unused Usings
Removing Unused Usings in Visual Studio 2012
Reviewed by DF
on
11:57:00 PM
Rating: