Autocomplete css class in html not working in vs code

Viewed 3066

The autocomplement in html of the names of the css classes stopped working.

I have tried many extensions, but nothing has worked:

  • IntelliSense for CSS class names in HTML
  • HTML CSS Support

Also, gere's my settings.json

{
    "workbench.colorTheme": "Visual Studio Light",
    "css.fileExtensions": [
        "css",
        "scss"
    ]
}
1 Answers

The recent updates of the HTML CSS Support extension had some errors which it doesn't support and find local & libraries' CSS classes, the current update of the extension is 1.6.0, I don't know if this version works or not but the safest version for this to work is 0.2.3.

In vscode you would have to click on the gear icon on the extension tab - Install another version ... and choose 0.2.3 if the current version doesn't work. After that either restart your vscode windows or restart your computer. This should work

Related