m4jing / HTML-CSS-Class-Completion

A Visual Studio Code extension that provides CSS class name completion for the HTML class attribute based on the CSS files in your workspace. Also supports React's className attribute.

Home Page:https://marketplace.visualstudio.com/items?itemName=Zignd.html-css-class-completion

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

IntelliSense for CSS class names

A Visual Studio Code extension that provides CSS class name completion for the HTML class attribute based on the CSS class definitions that can be found in your workspace or in external files referenced through the link element.

Features

  • Gives you autocompletion for CSS class definitions that can be found in your workspace (defined in CSS files or the in types listed in the Supported Language Modes section)
  • Supports external stylesheets referenced through link elements in HTML files
  • Command to manually re-cache the class definitions used in the autocompletion

Supported Language Modes

  • HTML
  • Razor
  • PHP
  • JavaScript
  • JavaScript React (.jsx)
  • TypeScript React (.tsx)
  • Vue (.vue) [requires octref.vetur]
  • Twig
  • Markdown (.md)
  • Embedded Ruby (.html.erb) [requires rebornix.Ruby]
  • Handlebars
  • EJS (.ejs)

Contributions

You can request new features and/or contribute to the extension development on its repository on GitHub. Look for an issue you're interested in working on, comment on it to let me know you're working on it and submit your pull request! :D

What's new in version 1.12.0 (Out 31, 2017)

  • Added the "multi-root ready" keyword, it was a request from the VS Code team.

Check out the change log for the current and previous updates.

Usage

If there are HTML files on your workspace the extension automatically starts and look for CSS class definitions. In case new CSS classes are definined or new CSS files are added to the workspace and you also want auto completion for them simply hit the lightning icon you will find on the status bar and execute the command pressing Ctrl+Shift+P and then typing "Cache CSS class definitions".

About

A Visual Studio Code extension that provides CSS class name completion for the HTML class attribute based on the CSS files in your workspace. Also supports React's className attribute.

https://marketplace.visualstudio.com/items?itemName=Zignd.html-css-class-completion

License:MIT License


Languages

Language:TypeScript 100.0%