Open files in VS Code and Cursor / Code and APIs

Get CSS class name completion in VS Code

VS Code's built-in HTML support does not read the style sheets in your workspace, so it does not suggest your class names in class="...". Install the free Class Names IntelliSense by Zovo. It reads every .css, .scss and .less file in the workspace, plus <style> blocks and linked sheets, and lists each name with the file it comes from. Hover a name to see its rule, or press F12 to jump to it.

Install in VS CodeMarketplace pageOpen VSX (Cursor, Windsurf, VSCodium)JetBrains IDEs

Free, MIT license. Extension ID zovo.zovo-html-css-class-intellisense, version 0.2.2. Needs VS Code 1.90.0 or newer.

Also free from Zovo: Auto Rename Tag & Close Tag Sync, VS Code Marketplace · Open VSX (Cursor, Windsurf).

CSS class name completion in an HTML file: classes from the project style sheets, each with the file it comes from
CSS class name completion in an HTML file: classes from the project style sheets, each with the file it comes from.

Steps in VS Code

  1. Install Class Names IntelliSense from the Marketplace, or press Ctrl+P (Cmd+P on macOS) and run ext install zovo.zovo-html-css-class-intellisense.
  2. Open any HTML, JSX, Vue, Svelte, Angular, PHP or Blade file. The style sheets are read once in the background, and the status bar shows the number of classes.
  3. Type inside class="...", className, :class or clsx() and pick a name from the list.
  4. Hover a class name to see its CSS rule and file. Press F12 to open the rule.
  5. If a page loads Bootstrap 5 or Bulma from a CDN, turn on the bundled class list with the htmlCssClass.frameworks setting.

Steps in Cursor, Windsurf or VSCodium

  1. Open the Extensions view with Ctrl+Shift+X (Cmd+Shift+X on macOS).
  2. Search for zovo.zovo-html-css-class-intellisense and click Install. Cursor, Windsurf and VSCodium install from Open VSX, where it is published as zovo/zovo-html-css-class-intellisense.
  3. If your editor has no gallery, download the .vsix from the Open VSX page and run "Extensions: Install from VSIX...".
  4. Then use it the same way as in VS Code.

What Class Names IntelliSense handles

What it does not do

In JetBrains IDEs (IntelliJ IDEA, PyCharm, WebStorm, CLion and others)

Other options

Install counts and Open VSX status were checked on 9 November 2026. Descriptions in quotes are the extensions' own.

Questions

Why does VS Code not suggest my CSS classes?

Its HTML support suggests tags and attributes, but it does not read the style sheets in your workspace. An extension has to read them first.

Will it slow down VS Code in a big project?

It reads the sheets once in the background and then only the files you change. node_modules and ignored folders are skipped, and it uses no CPU while you type in other files.

Does it work with React and CSS modules?

Yes. It completes className, clsx(), cn() and cva(), and styles. for an imported CSS module.

More about Class Names IntelliSense

Read the Class Names IntelliSense page for every feature and setting, or the source code on GitHub.

Support this work

If this extension saves you time, you can support the work on GitHub Sponsors. Monthly tiers start at $5, and one-time tiers start at $15. Sponsorship is optional, and the tool works the same without it.

Need your format supported?

Open a format request with a sample file, and I reply there whether it can be done. For USD 299 once, through this GitHub Sponsors tier, I add your file format or a missing feature to this extension, with tests, within 7 days.