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?
At the bottom left corner of the vscode you have a "timeline", you can undo, and see all saved logs.
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
This should delete the Keybinding.
In fact, under the hood this also edits your keybindings.json
. To see the effect, after opening Keyboard Shortcuts, click on the icon having the mouseover text Open Keyboard Shortcuts (JSON)
:
If you need more help, try:
https://code.visualstudio.com/docs/getstarted/keybindings#_advanced-customization
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With