I'm coming from Eclipse, working in Visual Studio 2008 Express and just want to highlight code, right-click and comment it out.
How do I activate this the comment/uncomment feature, I know Visual Studio 2003 had it.
HERE ARE THE ANSWERS, TURNS OUT IT DEPENDS WHAT YOU ARE USING:
Visual Studio 2008 Full Version:
Comment Ctrl-K , Ctrl-C
Uncomment Ctrl-K , Ctrl-U
Visual Web Developer 2008 Express:
Comment Ctrl-K , Ctrl-C
Uncomment Ctrl-K , Ctrl-U
Visual C# 2008 Express:
Comment Ctrl-E , Ctrl-C
Uncomment Ctrl-E , Ctrl-U
Windows: Ctrl + K + U. Mac: Command + K + U.
Comments can be added to single lines of code (Ctrl + /) or blocks of code (Ctrl + Shift + /).
Weird it's Ctrl+E, C (Comment) and Ctrl+E, U (Uncomment)
Normally It's Ctrl+K, C and Ctrl+K, U as Mauro says. Express Edition default (and only) keyboard mapping says otherwise.
the key combination
Comment Ctrl-K , Ctrl-C
Uncomment Ctrl-K , Ctrl-U
That's VS 2008, not sure if the express editions have the same thing.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With