Reputation: 5872
How can I disable the default tooltip hint message in VS Code that appears when I hover over things in the editor? It's annoying sometimes.
Upvotes: 304
Views: 132879
Reputation: 1008
I found that disabling editor.hover.sticky
was the most effective fix for this. Controls whether the hover should remain visible when mouse is moved over it.
I don't mind the hover popups, but dont block me from the text behind the popup...
"editor.hover.sticky": false
Set this in your user settings.json
: ctrl + shift + p
-> Preferences: Open User Settings (JSON)
Also - you can browse all available settings and their descriptions in defaultSettings.json
: ctrl + shift + p
-> Preferences: Open Default Settings (JSON)
. Very useful to search for a term in there with ctrl + f
.
Upvotes: 0
Reputation: 1241
"editor.hover.enabled": false,
is your bulletproof solution. Then you can use CTLR + K, CTLR + I (CMD + K, CMD + I for Mac).
Upvotes: 114
Reputation: 112
Running with v1.72.1. noticed in the tooltip window there is an 'x' in the upper right corner for a close, clicking it. It worked and seems to have persisted my desire to dismiss them.
Thinking about it, don't see a way to get them back if someone might actually want them back.
Upvotes: 1
Reputation: 429
In the menu, choose File > Preferences > Settings
.
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.
Upvotes: 42
Reputation: 328
If you are not looking for disable and as mentioned by user: Darrell Brogdon above, if you want to delay the hover time of tooltip as solution then simply add the below line in user settings with your desired time value. replace value 3000 as per your need. Note: hover settings are moved in Online Services Settings in newer versions, hence you might not be able to find it with search 'hover' in user settings.
// modify in Preferences --> Settings or settings.json
"editor.hover.delay": 3000,
Upvotes: 4
Reputation: 6973
I'm using Visual Studio Code v1.63.0 and in Settings I searched for "hover" and, among other things, found "Editor > Hover: Delay" and "Editor > Hover: Enabled". Unchecking the latter will disable the hover. However, I personally find them useful but they're displayed too quickly so I increased ""Editor > Hover: Delay" from "300" to "5000"
Upvotes: 34
Reputation: 998
Cntrl + shift + P -> Prefences: Open Settings (JSON)
"editor.parameterHints": false,
"editor.hover.enabled": false
i had to do both of these.
Upvotes: 16
Reputation: 41
Go to the settings gear wheel in the bottom left hand corner, then go to Settings and search "hover". Uncheck the "Controls whether the hover is shown" box.
Upvotes: 2
Reputation: 79
Here's the noob version, assuming you know little about VS Code (like me).
Windows. VS Code version: 1.37.1
Rockstar Version: edit the JSON like a balla
If you're new to coding, those tooltips can come in handy. You may want instead to just DELAY their appearance as Logan suggested.
click here: https://stackoverflow.com/a/53512394/8623576 or simply scroll up! :)
Note: I appreciate others have posted almost the EXACT same answer but, as I mentioned, this is the NOOB version that assumes the user has little/no experience with VS Code.
Upvotes: 7
Reputation: 8291
editor.hover.enabled: false
in settings.json to Tooltip
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
Upvotes: 246
Reputation: 101183
Simple way that no one here has mentioned: Code → Preferences → Settings. Search for "hover". Uncheck the checkbox where it says "Editor > Hover: Enabled".
Upvotes: 16
Reputation: 3382
for Versions 1.31+ this one line did it for me:
"editor.parameterHints.enabled": false
Upvotes: 3
Reputation: 2992
On version 1.27.2, I found that only this parameter disabled all the tooltips: "editor.hover.enabled": false
.
Upvotes: 25