vscode配置代码提示tab选择候选项,enter上屏
Ctrl+Shift+P,搜索"key",找到Preferences: Open Keyboard Shortcuts (JSON)
或者首选项:打开键盘快捷方式(JSON)
添加下面配置
// 将键绑定放在此文件中以覆盖默认值
[
{
"key": "tab",
"command": "selectNextQuickFix",
"when": "editorFocus && quickFixWidgetVisible"
},
{
"key": "shift+tab",
"command": "selectPrevQuickFix",
"when": "editorFocus && quickFixWidgetVisible"
},
{
"key": "tab",
"command": "selectNextSuggestion",
"when": "editorTextFocus && suggestWidgetMultipleSuggestions && suggestWidgetVisible"
},
{
"key": "shift+tab",
"command": "selectPrevSuggestion",
"when": "editorTextFocus && suggestWidgetMultipleSuggestions && suggestWidgetVisible"
}
]