Is there a way to use one keyboard shortcut ( Ctrl + / for example) to comment or uncomment if commented in Visual Studio 2012, like it is in SublimeText or PhpStorm?
Asked
Active
Viewed 433 times
3
-
http://stackoverflow.com/questions/12066739/what-key-shortcuts-are-to-comment-and-uncomment-code-in-visual-studio-2012 – SomeWittyUsername Dec 05 '12 at 14:33
1 Answers
0
You could use Ctrl+K, Ctrl+C for comment the selected and Ctrl+K, Ctrl+U for un-comment the code lines.
But remember this will add comment symbol (//
) to all the code lines. As far as I know, there is no specific short cut for block comment (/* .. */
) in VS 2012.

L Y E S - C H I O U K H
- 4,765
- 8
- 40
- 57

Diablo
- 443
- 7
- 21