views:

123

answers:

4

I'm trying to comment/uncomment a block of code using the shortcut "Ctrl+C" and "Ctrl+K", but it's not working. Nothing happens.

Anyone know why?

+2  A: 

I think you have it backwards, its CTRL+K, CTRL+C to comment, CTRL+K, CTRL+U to uncomment.

Here is a list of Visual Studio Shorcuts (The article doesn't specify which version, but I don't believe they have changed)

Brandon
If there's a comma, that means "and", not "or"?
Teef L
@mathee: + means "press both", comma means "and then..". So press Ctrl and K simultaniously, then press both Ctrl and C (you can keep Ctrl pressed or release it in between, that doesn't matter)
Hans Kesting
A: 

try this

ctrl -k + c : command out the selected code

ctrl -k + u : uncommand out the selected code

anishmarokey
A: 

CTRL + "k" + "c" and CTRL + "k" + "u": These two are for commenting selected text (the "c" options) and uncommenting selected text (the "u" option).

rahul
A: 

Did you checked your settings? Tools >> Options >> Keyboard (make sure "Show all settings" is checked) and search for Edit.CommentSelection...