Welcome to MSDN Blogs Sign in | Join | Help

DDITDev

A crack team of devs in the Developer Division. ASP.NET, SQL, C#, development practices.
VS2008 Tip - Remove unused 'using' statements

Did you know that VS2008 has a great feature to remove any unused 'using' statements in your code?

Simply right click anywhere in your code file, select 'Organize Usings' and select 'Remove Unused Usings'.

You then end up with only the using statements you are actually using! (no pun intended ;))

Other options include sorting your current using statements, or removing and sorting at the same time..

Hope this helps!

Jason

UPDATE - One of my colleagues just pointed out that you can also do this (as well as some other great stuff) for all files in your project(s) using the PowerCommands for VS2008 add-in. Thanks Rick!

Posted: Wednesday, March 19, 2008 9:51 AM by dditweb
Filed under: , ,
Leave a Comment

(required) 

(required) 

(optional)

(required) 

  
Enter Code Here: Required

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Page view tracker