需要修改VS Code的快捷键配置文件:C:\Users\用户名\AppData\Roaming\Code\User\keybindings.json
[
{
"key": "enter",
"command": "acceptSelectedSuggestion",
"when": "editorTextFocus && suggestWidgetVisible"
}
,{
"key": "ctrl+k",
"command": "workbench.action.terminal.clear",
"when": "terminalFocus"
}
]
文本的作用为:
- 回车键自动补全代码
- Ctrl+K 清空命令行