Disable tooltip hint in Visual Studio Code

2019-01-17 05:48发布

问题:

How can I disable default tooltip hint message on vscode? it's annoying some time.

回答1:

Update October Goto File=>Preference=>Settings

Text Editor => Suggestions

Click on Edit in settings.json

There are two panes

Default User Settings

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

User Settings

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

This also can be done UI.

Setting Snippet Suggestions : false

Update August 2018 (version 1.27)

Goto File=>Preference=>Settings

Text Editor => Suggestions

Click on Edit in settings.json

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

Update your suggest options and save.

Before August 2018

Goto File=>Preference=>User Settings

You will find 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,

Just find your language and set suggest = false

Update

Setting to turn off ALL popups

"editor.parameterHints": false



回答2:

To hide those hints you can just add "editor.parameterHints": false to your settings.json. Found the answer in here.



回答3:

On version 1.27.2, I found that only this parameter disabled all the tooltips: "editor.hover.enabled": false.



回答4:

"editor.hover.enabled": false,

is your bulletproof solution. Then you can use CTLR + K, CTLR + I.



回答5:

I find using a larger value for Editor > Hover: Delay (search for "delay" in the settings search bar) does the trick for me. Its default is 300ms. This doesn't address the desire to actually eliminate the tooltips, but having them only appear after, say, 2 seconds, reduces the visual clutter quite a bit for me.