Click here to Skip to main content
Rate this: bad
good
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 20:38pm
Rockstar_5.7K
Comments
Sergey Alexandrovich Kryukov at 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
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
Sergey Alexandrovich Kryukov at 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 at 13-May-13 1:55am
   
Thanks a lot...
Member61 at 13-May-13 1:50am
   
Thank You...
Mohammed Hameed at 13-May-13 1:56am
   
You're welcome!
Maciej Los at 13-May-13 1:54am
   
+5
Mohammed Hameed at 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 at 13-May-13 1:54am
   
+5
Sergey Alexandrovich Kryukov at 13-May-13 1:56am
   
Thank you, Maciej.
—SA
Mohammed Hameed at 13-May-13 1:57am
   
I totally agree with Sergey. Great.
Sergey Alexandrovich Kryukov at 13-May-13 1:58am
   
Thank you, Mohammed.
—SA
Mohammed Hameed at 13-May-13 1:58am
   
+5 from me too...
Sergey Alexandrovich Kryukov at 13-May-13 2:17am
   
Thank you.
—SA
Mohammed Hameed at 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
0 Sergey Alexandrovich Kryukov 269
1 OriginalGriff 240
2 CPallini 195
3 Maciej Los 177
4 BillWoodruff 173
0 OriginalGriff 5,655
1 DamithSL 4,506
2 Maciej Los 3,997
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,180


Advertise | Privacy | Mobile
Web03 | 2.8.141216.1 | Last Updated 13 May 2013
Copyright © CodeProject, 1999-2014
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