The CSS through HTML extension for Visual Studio Code simplifies the process of creating CSS styles from classes and IDs defined in HTML files. This tool allows you to quickly generate CSS rules, improving efficiency in the development of your web projects.
- HTML
- REACT
- ANGULAR
- VUE
- SVELTE
- ASTRO
-
Quick Style Creation: Automatically generates CSS rules from classes and IDs found in the selected HTML code.
-
Support for Classes and IDs: Recognizes both classes (
class
) and IDs (id
) in the HTML code. -
CSS File Creation: Automatically creates CSS files in the same folder as the active HTML file if they do not exist.
-
CSS Tag Creation: Automatically crear CSS style tag in the same file for Vue, Astro or Svelte components
-
Select the HTML code from which you want to generate CSS styles.
-
Run the extension from the Visual Studio Code command menu or through the right-click context menu.
-
For a specific selection, use the command
CSS through HTML: Include on CSS
. -
To generate styles from the entire HTML content, use
CSS through HTML: Include All CSS
.
-
-
The extension will automatically create CSS rules based on the classes and IDs found.
-
The styles will be inserted into an existing CSS file or a new one will be created in the same folder as the active HTML file.
If you encounter any issues or have suggestions to improve the extension, feel free to open an issue on our GitHub repository. We welcome collaborations!