Remove a keyboard shortcut from VS Code

André Luiz Carletti picture André Luiz Carletti · Apr 3, 2017 · Viewed 9.3k times · Source

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?

Answer

Matt Bierner picture Matt Bierner · Apr 3, 2017

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