Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Get style from htmlNew to Visual Studio Code? Get it now.
Get style from html

Get style from html

HaoYu Bao

|
2,510 installs
| (0) | Free
Get styles from html, now only need to write css class once in html
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

get-style-from-html README

Extract styles from html, support sass and css, now only need to write css class once in html.

Features

  • Before using Get style from html: write a class in html, and also write a corresponding class in css.
  • After using Get style from html: write a class in html and write inline style, then Get style from html can get the class and style of the tag, and then synthesize sass or css code, write a lot less css classes.

Examples

example sass

example css

Extension Settings

This extension contributes the following settings:

  • get.style.from.html.cssStyle: sass or css

Release Notes

1.0.1

New feature: sass deep nesting.

1.0.0

Initial release of get-style-from-html.

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