vscode提示快捷键是Ctrl + space(空格 ),但是Ctrl + space是系统输入法切换快捷键,这样就会有冲突
在vscode中按Ctrl + Shift + P 输入key命令keyboard
将以下JSON复制进入
// Place your key bindings in this file to override the defaultsauto[]
[
{
"key": "alt+oem_2",
"command": "editor.action.triggerSuggest",
"when": "editorHasCompletionItemProvider && textInputFocus && !editorReadonly"
},
{
"key": "ctrl+space",
"command": "-editor.action.triggerSuggest",
"when": "editorHasCompletionItemProvider && textInputFocus && !editorReadonly"
}
]
将快捷键重新设置后可以使用Alt + /
和Ctrl + I
代码提示建议