VScode 设置自动补全快捷键

VScode 设置自动补全快捷键,tab键切换enter键选择。
1.Ctrl + Shift + P搜索key
VScode 设置自动补全快捷键_第1张图片

  1. keybindings.json 文件配置中
[
    {
        "key": "tab",
        "command": "acceptSelectedSuggestion",
        "when": "suggestWidgetVisible && textInputFocus"
    },
    {
        "key": "shift+tab",
        "command": "acceptSelectedSuggestion",
        "when": "suggestWidgetVisible && textInputFocus"
    },
    {
        "key": "tab",
        "command": "selectNextSuggestion",
        "when": "editorTextFocus && suggestWidgetMultipleSuggestions && suggestWidgetVisible"
    },
        {
        "key": "shift+tab",
        "command": "selectPrevSuggestion",
        "when": "editorTextFocus && suggestWidgetMultipleSuggestions && suggestWidgetVisible"
    }
]

这样就可以用 Tab,Shift+Tab 循环选择,接受按Enter,想取消就按 Esc。

你可能感兴趣的:(vscode,vscode,ide,编辑器)