如何禁用VSCode中的默认提示信息?有时候很烦人。


当前回答

Cntrl + shift + P -> preferences: Open Settings (JSON)

"editor.parameterHints": false,
"editor.hover.enabled": false

这两个我都得做。

其他回答

我使用的是Visual Studio Code v1.63.0,在设置中搜索“悬停”,发现“编辑器>悬停:延迟”和“编辑器>悬停:启用”。取消选中后者将禁用悬停。然而,我个人觉得它们很有用,但它们显示得太快了,所以我把“编辑器>悬停:延迟”从“300”增加到“5000”

edit .hover.enabled:设置为false。json到工具提示

单击settings.json中的Edit

有两个窗格

默认用户设置

"editor.quickSuggestions": {
    "other": false,
    "comments": false,
    "strings": false
  }

用户设置

"editor.parameterHints.enabled": false,
"editor.suggest.snippetsPreventQuickSuggestions": false,
"html.suggest.html5": false,
"editor.snippetSuggestions": "none",

这也可以在UI中实现。

设置片段建议:false

更新2018年8月(1.27版)

转到文件=>首选项=>设置

文本编辑器=>

单击settings.json中的Edit

"editor.parameterHints.enabled": false,
"editor.suggest.snippetsPreventQuickSuggestions": false,
"html.suggest.html5": false,

更新您的建议选项并保存。

2018年8月前

转到文件=>首选项=>用户设置

您将找到settings.json

// Configures if the built-in HTML language support suggests Angular tags and properties.
"html.suggest.angular1": false,

"html.suggest.ionic": false,

"html.suggest.html5": false,

只需找到你的语言并设置suggest = false

更新

设置关闭所有弹出窗口

"editor.parameterHints": false

Cntrl + shift + P -> preferences: Open Settings (JSON)

"editor.parameterHints": false,
"editor.hover.enabled": false

这两个我都得做。

对于1.31+版本,这一行为我做了:

"editor.parameterHints.enabled": false

要隐藏这些提示,你可以添加“编辑器”。parameterHints": false为你的settings.json。在这里找到了答案。