Skip to content
| Marketplace
Sign in
Visual Studio>Tools>Better Razor CSS Class Intellisense
Better Razor CSS Class Intellisense

Better Razor CSS Class Intellisense

Kevin Mueller

|
14,943 installs
| (6) | Free
A better html/razor class completion than the existing one. Features: - Works in any project type - Scans css files in the entire project structure, including referenced projects and nuget packages - External css files, which are link via the <link> attribute
Download

Html Css Class Completion

The existing HTML intellisense for Visual Studio has a lot of limitations. It only works if your project is a web-based project, and does not support razor class libraries. It only scans for .css files in the wwwroot directory, and it doesn't support anything fancy like the relatively new isolated CSS feature for razor components. Likewise, it also completely ignores any referenced projects and/or nuget packages.

This extension fixes all that, by improving the existing HTML/Razor Intellisense with the following features:

  • Works in any project type.
  • Scans CSS files in the entire project structure, including referenced projects, as well as nuget packages.
  • External CSS files, which are linked via the <link> attribute in any .html/.cshtml file, will be scanned as well.
  • Isolated CSS support. CSS classes from *.razor.css files, will only be shown in the corresponding *.razor component.

If you add new css files, you can re-scan all files by using Tools -> Scan all Projects for CSS Classes.

The scanning also happens automatically every time you save a .css or .html file. This behavior can be controlled in the options.

Have an idea for a feature or found a bug? Feel free to submit an issue here: https://github.com/kevin-mueller/HtmlCssClassCompletion

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft