Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>eCSStractor tsx for VSCodeNew to Visual Studio Code? Get it now.
eCSStractor tsx for VSCode

eCSStractor tsx for VSCode

kbatkov

|
10,054 installs
| (0) | Free
VSCode plugin for extracting class names from JSX and generate CSS stylesheet for following
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

eCSStractor jsx for VSCode README

VSCode plugin for extracting class names from JSX and generate CSS stylesheet for following

eCSStractor

Usage

Open any document contain HTML and do one of the following:

  • Press Cmd+Shift+P on Mac OS X or Ctrl+Shift+P on Windows/Linux to launch command palette and choose:
    • eCSStractor jsx Run
    • eCSStractor jsx Run (With BEM Nesting)
    • eCSStractor jsx Run (With BEM Nesting and comments)
    • eCSStractor jsx Run (Without BEM Nesting)
  • Right click and select eCSStractor jsx Run

Then you will see new tab with CSS selectors extracted from document or copy them to the clipboard (depending on settings).

Plugin can process either selected text or whole file.

Settings

  • Brackets - Add brackets. Useful for Sass syntax and Stylus
  • Brackets newline after - Add new line
  • Destination - Where to put result ("tab" or "clipboard")
  • Bem nesting - BEM Nesting. Generate nested stylesheet for preprocessors
  • Indentation - Indent symbol
  • Element separator - Separator between block and element names
  • Modifier separator - Separator between block or element and they modifier
  • Parent symbol - Parent symbol. Ex.: &__element {}
  • Empty line before nested selector - Empty line before nested element/modifier
  • Add comment - Add comments to nested stylesheets for preprocessors
  • Comment style - Comment style. Either CSS (/* */) or SCSS (//)

Notes

  • Extension icon from iconfinder.com
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft