CSS class, id and custom property completion for HTML in VS Code
open sourceMITfree
HTML CSS Support (ecmel.vscode-html-css) is a Visual Studio Code extension that completes HTML id and class attributes from the style sheets a project uses, and CSS custom properties inside var(). It reads styles defined in the file and local or remote style sheets you list in the workspace settings (with glob patterns), shows a custom property's resolved value on hover, goes to the definition of selectors and custom properties, and validates class attributes on demand. HTML is enabled by default, and other languages such as Vue, Twig or Nunjucks can be turned on. It's by Ecmel Ercan and is on the VS Code Marketplace and Open VSX.
Problems it solves
- autocomplete my CSS class names while writing HTML in VS Code
- see which CSS variables exist while I type var()
- catch class names in my HTML that no style sheet defines
Features
- class and id attribute completion
- CSS custom property completion in var()
- custom property values on hover
- go to definition for selectors and custom properties
- class attribute validation
- local and remote style sheets
Alternatives
The same job
These do what HTML CSS Support does.
- CSS Peek Peek at, jump to and hover over the CSS, SCSS and Less rules for a class or id in VS Code
- Jinja for Visual Studio Code Syntax highlighting and snippets for the Jinja template language in VS Code
