Is there a quick way to delete using statements in C #?

Is there a quick way to determine if you are using specific namespaces in your application. I want to remove all unnecessary ones using instructions such as using System.Reflection etc., but I need a way to determine if I use these libraries or not. I know that the Resharper tool does this for you, but is there a quick and dirty and free way to do this?

+6
c # namespaces visual-studio-2008 using-statement
source share
4 answers

Visual Studio 2008 will also do this for you, right-click in your class file and select Organize Usage → Delete and Sort.

+14
source share

Visual Studio 2008 + PowerCommmands = Deleting and sorting queries around the solution.

+9
source share

VS2008 can do this for every file.

Right-click the source code, select Organize Usage, Delete Unused Operations.

+2
source share

I just noticed your vs2008 tag, but for those who don't have VS2008, you can get a similar function in Resharper.

+2
source share

All Articles