答案 0 :(得分:2)
您应该尝试设置"editor.quickSuggestions": false
和"editor.suggestOnTriggerCharacters": false
以禁用建议。
答案 1 :(得分:1)
参数提示可能很有用,我建议设置简单的键绑定以在显示/隐藏参数提示之间切换。
我使用以下设置/键盘绑定来使用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"
}
答案 2 :(得分:0)
该窗口是签名帮助/参数提示。按 esc 可以取消单个弹出窗口,或设置"editor.parameterHints.enabled": false
使其完全禁用。
答案 3 :(得分:0)
尝试将以下内容添加到settings.json中:
{
"editor.quickSuggestions": {
"other": false,
"comments": false,
"strings": false
},
"editor.acceptSuggestionOnEnter": "on",
"editor.quickSuggestionsDelay": 10,
"editor.suggestOnTriggerCharacters": false,
"editor.tabCompletion": "on",
"editor.suggest.localityBonus": true,
"editor.suggestSelection": "recentlyUsed",
"editor.wordBasedSuggestions": true,
"editor.parameterHints.enabled": false,
}
您还可以自定义上述设置,以控制何时显示快速建议。