Click here to Skip to main content
12,291,223 members (63,512 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: Visual-Studio
Hi Everyone,

Removing Unused Usings in Visual Studio is a good practice?
Any drawbacks of removing unused Usings?
Posted 12-May-13 19:38pm
Rockstar_5.7K
Comments
   
Can you even imagine a single drawback? This is the same as asking: "is there is a drawback of washing hands?".
—SA
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

Yes, it is.

If you perform code analysis, microsoft would show it as a warning if you have any unused warnings.

Why use anything which is not in use?
  Permalink  
Comments
   
Absolutely agree, a 5. In my answer, I added some more words on the topic, please see.
—SA
Mohammed Hameed 13-May-13 1:55am
   
Thanks a lot...
Member61 13-May-13 1:50am
   
Thank You...
Mohammed Hameed 13-May-13 1:56am
   
You're welcome!
Maciej Los 13-May-13 1:54am
   
+5
Mohammed Hameed 13-May-13 1:56am
   
Thanks a lot dear.
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

This is not only a good practice, it's a must. I would rather like to have "Remove unused references", too. You should always rigorously remove everything unused and take it as one of the most important engineering principles, in all branches of engineering, not only software.

—SA
  Permalink  
v2
Comments
Maciej Los 13-May-13 1:54am
   
+5
   
Thank you, Maciej.
—SA
Mohammed Hameed 13-May-13 1:57am
   
I totally agree with Sergey. Great.
   
Thank you, Mohammed.
—SA
Mohammed Hameed 13-May-13 1:58am
   
+5 from me too...
   
Thank you.
—SA
Mohammed Hameed 13-May-13 4:03am
   
Welcome....

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160518.1 | Last Updated 13 May 2013
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100