In Visual Studio 2008, is there a keyboard shortcut to comment/uncomment selected lines of code?
Asked
Active
Viewed 6,239 times
2 Answers
11
- CTRL + K, followed by CTRL + C for commenting
- CTRL + K, followed by CTRL + U for uncommenting
For more good stuff, check Favorite Visual Studio keyboard shortcuts.

Community
- 1
- 1

Fredrik Mörk
- 155,851
- 29
- 291
- 343
1
Look under the Edit->Advanced menu. I actually changed mine to CTRL-/, CTRL-/ so I can't remember what the original was.

Tod
- 8,192
- 5
- 52
- 93