Vivian River
Vivian River

Reputation: 32390

Keyboard shortcut to comment/uncomment selected code in VS2008

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

Upvotes: 5

Views: 6303

Answers (2)

Fredrik Mörk
Fredrik Mörk

Reputation: 158309

  • 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.

Upvotes: 11

Tod
Tod

Reputation: 8242

Look under the Edit->Advanced menu. I actually changed mine to CTRL-/, CTRL-/ so I can't remember what the original was.

Upvotes: 1

Related Questions