Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Sass Template GeneratorNew to Visual Studio Code? Get it now.
Sass Template Generator

Sass Template Generator

Anmol Jhamb

|
128 installs
| (0) | Free
An extension to generate a boiler template for sass/scss from given HTML/JSX
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

SASS Template Generator

A VSCode Extension to generate a SASS/SCSS Template from a given HTML or JSX.

Features

Generate a template from your given HTML or SCSS instead of having to type out the skeleton yourself.

screenshot

Requirements

The only requirment for the given extension is node-html-parser: ^6.1.4. To install it, change your directory to the given folder, and simply run, npm install.

Known Issues

One of the issues that I am currently working to fix is when you have multiple elements as a child, with the same tag, without any class or ID, so the extension generates a parent with 4 child with the same name.

For example, Input:

<nav>
    <ul>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
    </ul>
</nav>

It will be converted to Output:

nav {
    ul {
        li {
        }
        li {
        }
        li {
        }
        li {
        }
    }
}

If you face any other issues while using the extension, please create an issue in the issues tab.

Release Notes

Release Notes for SASS Template Generator

1.0.1

Minor bug fix. The regex pattern I used was in the greedy mode, which should have been lazy mode. Which lead to a minor bug in cases like. <div class="abc" someOtherAttrb="def"> which would lead to the regex finding the pattern: abc" someOtherAttrb="def instead of the abc as it should have. Just had to change it to lazy mode.

1.0.0

Initial release of SASS Template Generator


Feedback

If you have any feedback, please reach out to me at talktoanmol@outlook.com

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