Here’s a quick timesaving keyboard shortcut that works in all Visual Studio versions to quickly comment and uncomment a line or selection of code.


 Quick Comment

Press Ctrl + K C.  You don’t need to select the whole line and VS will detect the type of code and use the correct type of comment.

 Quick Uncomment

Press Ctrl + K U.


Comments


Belgium Koen
June 5. 2009 14:07
Koen
Woooow! what a timesaver! Thx man
Oh btw did you know you can actually change shortcuts for these things?
My comment shortcut = Ctrl + /
And uncomment = Ctrl + *

no site


United Kingdom Dan
June 6. 2009 09:43
Dan
I know resharper has other shortcuts for commenting but hadn't tried changing the defaults.

Cheers!


http://www.dmgtech.co.uk/http://www.dmgtech.co.uk/

Add comment




  Country flag

biuquote
  • Comment
  • Preview
Loading



Calendar

«  March 2010  »
MoTuWeThFrSaSu
22232425262728
1234567
891011121314
15161718192021
22232425262728
2930311234
View posts in large calendar

Authors

Recent Comments

Banners

Theme Grabber
Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2010 Dan Gibbons .Net Developer