我在VS代码中新建了一个提示,接受键从"Enter“改为"space”和“”。
当然,此键只在打开提示栏时才能正常编辑。
我在keybinding.json上尝试过这样的方法
// Place your key bindings in this file to overwrite the defaults
[
{
"key": "space",
"command": "repl.action.acceptInput",
"when": "parameterHintsVisible"
}
]但它不起作用,我哪里出错了?
发布于 2016-12-07 18:40:12
我相信你要找的命令是acceptSelectedSuggestionOnEnter
{
"key": "space",
"command": "acceptSelectedSuggestionOnEnter",
"when": "acceptSuggestionOnEnter && editorTextFocus && suggestWidgetVisible"
}https://stackoverflow.com/questions/41018101
复制相似问题