Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to disable "MDN References Intellisense" popup (for HTML & CSS) in VS Code?

This is in reference to disabling this specific feature, while leaving all other code hinting features active.

I am very familiar with the Settings GUI as well as settings.json and have searched extensively but none of the Intellisense/hints/suggestions configuration seems to apply to this particular popup.

Annotated screenshot indicating the popup I wish to disable

like image 361
Scott Avatar asked Dec 03 '19 17:12

Scott


2 Answers

  1. Just going to Code -> Preferences -> Settings
  2. Search "editor hover enabled" and disable checkbox.
like image 112
Artyom Knyazev Avatar answered Sep 20 '22 03:09

Artyom Knyazev


It looks like it will finally be in v1.52 for html files, see https://github.com/microsoft/vscode/issues/97979 - it is coming to css/scss files as well.

Two new settings:

"html.hover.documentation": false, "html.hover.references": false, 

The references one will disable the MDN Reference link only. The documentation setting all the MDN documentation as well.

"html.hover.documentation": "Show tag and attribute documentation in hover.", "html.hover.references": "Show references to MDN in hover." 

And for v1.54 extending to css, scss and less:

Hovers in CSS/LESS/SCSS and HTML

You can now fine tune the content of hovers in HTML and CSS:

  • Do not show documentation from MDN
  • Do not show the link to the MDN page Use the settings css.hover.documentation and css.hover.references resp the similar settings in html, css, scss and less

from https://github.com/microsoft/vscode-docs/blob/vnext/release-notes/v1_54.md#hovers-in-csslessscss-and-html

like image 37
Mark Avatar answered Sep 23 '22 03:09

Mark