Search code examples
c#visual-studio-2010resharperkeyboard-shortcuts

Ctrl+K, Ctrl+C is a command no longer working in Visual Studio 2010


I am using Visual Studio and Resharper 8.

For some reasons, my favorite shortcut Ctrl+K, Ctrl+C or Ctrl+D no longer works.

Indeed, the application shows in the status bar the message: The key combination is(Ctrl K Ctrl C ) is not a command.

Any ideas how to reset them?

Many thanks.


Solution

  • Very strange problem. Yes, it is possible to edit the command in Visual Studio. Select Tools and then Options. Once the window is shown, select the Environment option group and then Keyboard, as shown in the picture below:

    enter image description here

    There, you can edit the shortcuts:

    • Edit.CommentSelection for commenting a selection (Default shortcut: Ctrl+K, Ctrl+C)
    • Edit.FormatDocument to format the document (Default shortcut: Ctrl+K, Ctrl+D)