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.
- Provides class name completion from class definitions found on your current workspace
- Command to manually re-cache the class definitions used on the auto completion
- Supports React's
className
attribute
- Cache class definitions from style tags
- Cache class definitions from link tags
- Customization of the directories in which the extension will look for class definitions through User Settings
- Support for PHP, Razor, Jade...
You can request new features on the extension repository on GitHub.
- Rolling back a change that was causing node_modules to be ignored.
- Now completion gets triggered when you open single quotes, double quotes or types a space character". Thanks to github.com/allevaton.
- Internal refactors. Thanks to github.com/allevaton.
Check out the change log for all updates.
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".