5

In Visual Studio 2008, is there a keyboard shortcut to comment/uncomment selected lines of code?

Vivian River
  • 31,198
  • 62
  • 198
  • 313

2 Answers2

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