那个窗口是签名帮助/参数提示。按esc取消单个弹出窗口,或设置"editor.parameterHints.enabled": false
以完全禁用它。
您可以尝试设置"editor.quickSuggestions": false
和"editor.suggestOnTriggerCharacters": false
以禁用建议功能。
参数提示可能很有用,我建议设置简单的按键绑定来切换显示/隐藏参数提示。
我使用以下设置/键绑定来切换使用shift+space
和space
。
通过将"editor.parameterHints.enabled": false
添加到settings.json
中来禁用参数提示。
将shift+space
绑定为触发参数提示。 默认为ctrl+shift+space
。
//keybindings.json
{
"key": "shift+space",
"command": "editor.action.triggerParameterHints",
"when": "editorHasSignatureHelpProvider && editorTextFocus"
},
space
绑定为隐藏参数提示。默认值为 esc
。//keybindings.json
{
"key": "space",
"command": "closeParameterHints",
"when": "editorFocus && parameterHintsVisible"
}