Click here to Skip to main content
15,069,665 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Everyone,

Removing Unused Usings in Visual Studio is a good practice?
Any drawbacks of removing unused Usings?
Posted
Comments
   
Can you even imagine a single drawback? This is the same as asking: "is there is a drawback of washing hands?".
—SA

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?
   
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...
Rockstar_ 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.
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
   
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)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900