Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>HTML & JSX to BEM SCSS ConverterNew to Visual Studio Code? Get it now.
HTML & JSX to BEM SCSS Converter

HTML & JSX to BEM SCSS Converter

HTML & JSX to BEM SCSS Converter

|
96 installs
| (2) | Free
Extract BEM classes from HTML/JSX and automatically generate well-structured SCSS files. This extension parses your markup, identifies BEM patterns, and creates nested SCSS with proper selector hierarchy. Save time writing stylesheets while maintaining clean BEM methodology.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Generate SCSS from HTML/JSX

Overview

The Generate SCSS from HTML/JSX VS Code extension provides functionality to automatically generate SCSS styles based on class names found in your HTML or JSX code. This extension helps streamline the process of creating SCSS structures by extracting class names and converting them into a hierarchical SCSS format.

Features

  • Extract Class Names: Parses the selected text in your editor to find class names following the BEM (Block, Element, Modifier) naming convention.
  • Generate SCSS: Converts the extracted class names into SCSS syntax based on the hierarchical structure.
  • Copy to Clipboard: Automatically copies the generated SCSS code to your clipboard for easy pasting into your stylesheets.

Installation

  1. Open VS Code.
  2. Go to the Extensions view by clicking on the Extensions icon in the Activity Bar on the side ofcd the window or by pressing Ctrl+Shift+X.
  3. Search for generate-jsx-html-to-bem-scss.
  4. Click Install to install the extension.

Alternatively, you can install the extension directly from the Visual Studio Marketplace.

Usage

  1. Open your HTML or JSX file in VS Code.
  2. Select the text containing the class names you want to convert to SCSS.
  3. Execute the Command:
    • Open the Command Palette by pressing Ctrl+Shift+P or Command+Shift+P.
    • Search for and select Copy SASS content.

The SCSS code will be generated based on the selected text and copied to your clipboard. You will see a notification confirming that the Sass content has been copied.

Source code

For any feedback, suggestions, or issues, please feel free to open an issue or contribute directly to the repository at: https://github.com/hoangminhdevelop/generate-scss-from-html-jsx-with-BEM

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