我在VS代码中的新功能我想将提示接受键从“输入”更改为“空格”和“。”
当然这些键在普通编辑中有效,仅在提示栏打开时有效
我在keybinding.json
上尝试过类似的东西// Place your key bindings in this file to overwrite the defaults
[
{
"key": "space",
"command": "repl.action.acceptInput",
"when": "parameterHintsVisible"
}
]
但它不起作用,我哪里出错了?
答案 0 :(得分:1)
我相信你要找的命令是acceptSelectedSuggestionOnEnter
:
{
"key": "space",
"command": "acceptSelectedSuggestionOnEnter",
"when": "acceptSuggestionOnEnter && editorTextFocus && suggestWidgetVisible"
}