Thursday, January 17, 2008

A coworker showed me this neat new feature of Visual Studio 2008. If you right click within the code editor and roll your mouse over Organize Usings, three options will come up; Remove Unused Usings, Sort Usings and Remove and Sort. The names are pretty self explanatory so I won't bore you and explanation of each; just wanted to pass on the good word.

sshot-2

 

kick it on DotNetKicks.com

Sunday, January 27, 2008 11:56:08 PM (Eastern Standard Time, UTC-05:00)
Awesome. I already knew about it, but it is still cool. Keeping unneeded "usings" doesn't hurt anything, but does make the code longer. I find it best not to remove all the unneeded ones because sometimes System.Diagnostics (for Debug) will disappear.
Name
E-mail
(will show your gravatar icon)
Home page

Comment (HTML not allowed)  

Enter the code shown (prevents robots):