In Visual Stu开发者_StackOverflow社区dio 2008, is there a keyboard shortcut to comment/uncomment selected lines of code?
- 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.
Look under the Edit->Advanced menu. I actually changed mine to CTRL-/, CTRL-/ so I can't remember what the original was.
精彩评论