如何在VS代码中禁用默认键盘快捷键?

时间:2017-11-04 09:08:16

标签: visual-studio-code

例如,F5将在VS代码中运行调试任务,我可以通过某种方式禁用它吗?特别是延期。

我发现VS代码有许多键盘快捷方式扩展,但它们只为编辑器添加了新功能,从不禁用内置功能。<​​/ p>

1 个答案:

答案 0 :(得分:0)

// In Default Keyboard Shortcuts
...
{ "key": "tab", "command": "tab", "when": ... },
{ "key": "tab", "command": "jumpToNextSnippetPlaceholder", "when": ... },
{ "key": "tab", "command": "acceptSelectedSuggestion", "when": ... },
...

// To remove the second rule, for example, add in keybindings.json:
{ "key": "tab", "command": "-jumpToNextSnippetPlaceholder" }

来源:vscode docs