在Visual Studio代码中禁用工具提示提示

问题描述 投票:60回答:7

如何在VSCode中禁用默认的工具提示提示消息?有时候这很烦人。

enter image description here

visual-studio-code vscode-settings
7个回答
40
投票

在settings.json中的editor.hover.enabled: false到Tooltip

单击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)

转到File=>Preference=>Settings

Text Editor => Suggestions

单击settings.json中的Edit

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

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

New update option

2018年8月之前

转到File=>Preference=>User Settings

你会发现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

See the settings.json


34
投票

要隐藏这些提示,您只需将"editor.parameterHints": false添加到settings.json即可。找到答案in here


20
投票
"editor.hover.enabled": false,

是你的防弹解决方案。然后你可以使用CTLR + K,CTLR + I.


19
投票

在版本1.27.2上,我发现只有此参数禁用了所有工具提示:"editor.hover.enabled": false


2
投票

我发现编辑器使用更大的值>悬停:延迟(在设置搜索栏中搜索“延迟”)对我有用。默认值为300毫秒。这并没有解决实际消除工具提示的愿望,但让它们仅在2秒之后出现,这对我来说减少了视觉上的混乱。


2
投票

这里没有人提到的简单方法:代码→首选项→设置。搜索“悬停”。取消选中“编辑器>悬停:已启用”复选框。


1
投票

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

"editor.parameterHints.enabled": false
© www.soinside.com 2019 - 2024. All rights reserved.