clomas
clomas

Reputation: 103

Visual Studio 2015 comment shortcut doesn't work

When I first installed VS2015 I could comment out code with Ctrl + k. Now it's stopped working, I've reset keyboard mapping, I've reassigned it to a different shortcut but nothing works. Can anyone help? it's such an annoying issue.

Thanks in advance.

Upvotes: 1

Views: 5889

Answers (3)

Jimmy Lee Jones
Jimmy Lee Jones

Reputation: 935

If still relevant, this could be a sign that there is a collision in the shortcut itself. E.g., the shortcut is used by multiple commands

Upvotes: 0

Ryan Gibbs
Ryan Gibbs

Reputation: 1310

Belatedly...

In Visual Studio 2017 Community Ctrl + K + C does this action instead of just Ctrl + K. Ctrl + K + U to uncomment.

According to this binding list, that must have changed at some point for VS 2015;

https://shortcutworld.com/Visual-Studio/win/Visual-Studio_2015_Shortcuts

Upvotes: 4

fcampinho
fcampinho

Reputation: 11

Go on Tools ->

  1. Import and Export Settings Wizard
  2. Reset all settings
  3. Choose your Language and environment (C#, WEB, ...)

It will reset all keyboard shortcut to the correct map.

Upvotes: 1

Related Questions