从VS Code中删除键盘快捷键 [英] Remove a keyboard shortcut from VS Code
本文介绍了从VS Code中删除键盘快捷键的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
仅通过在 keybindings.json
文件中添加新键,我就可以覆盖VS Code中的任何键盘快捷键.
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?
推荐答案
这是已在我们的文档中找到了有关键绑定的信息.只需在命令名称前添加-
.
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" }
到您的 keybindings.json
这篇关于从VS Code中删除键盘快捷键的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文