Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 812 Bytes

File metadata and controls

31 lines (22 loc) · 812 Bytes

ECSStractor for VS Code

Port of the IntelliJ plugin from /Users/tirozit/projects/intellij-extract-css for Visual Studio Code.

Features

  • Extracts class names from HTML, JSX, Vue, PHP, Pug, and similar markup.
  • Works on the full document or only the current selections.
  • Generates CSS, SCSS, SASS, LESS, or Stylus output.
  • Supports optional BEM nesting with configurable separators.
  • Writes the result into a new stylesheet tab or directly to the clipboard.

Command

  • ECSStractor: Extract CSS

Settings

  • ecsstractor.target: newFile or clipboard
  • ecsstractor.language: css, scss, sass, less, stylus
  • ecsstractor.bem
  • ecsstractor.bemComments
  • ecsstractor.bemElementPrefix
  • ecsstractor.bemModifierPrefix

Development

npm install
npm run build