Search code examples
visual-studio-codekeyboard-shortcuts

VSCode: how to remove a keyboard shortcut?


I was able to overwrite any keyboard shortcut from VS Code just by adding a new key in the keybindings.json file.

However I can't remove an existing shortcut. More specifically, I'd like to remove this one:

{ "key": "ctrl+alt+down",         
  "command": "editor.action.insertCursorBelow",
  "when": "editorTextFocus" }

Any ideas on how I can remove it?


Solution

  • This is covered in our documentation for keybindings. Just add a - before the command name.

    For your example, try adding:

    { "key": "ctrl+alt+down", "command": "-editor.action.insertCursorBelow" }
    

    to your keybindings.json