Click here to Skip to main content
15,880,796 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
Sergey Alexandrovich Kryukov 13-May-13 1:47am    
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?
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 13-May-13 1:46am    
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
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
 
Share this answer
 
v2
Comments
Maciej Los 13-May-13 1:54am    
+5
Sergey Alexandrovich Kryukov 13-May-13 1:56am    
Thank you, Maciej.
—SA
Mohammed Hameed 13-May-13 1:57am    
I totally agree with Sergey. Great.
Sergey Alexandrovich Kryukov 13-May-13 1:58am    
Thank you, Mohammed.
—SA
Mohammed Hameed 13-May-13 1:58am    
+5 from me too...

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