Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>eCSStractorNew to Visual Studio Code? Get it now.
eCSStractor

eCSStractor

kubosho

|
59,286 installs
| (1) | Free
Extracting selectors from HTML and generate CSS stylesheet
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

eCSStractor for VS Code

CircleCI

eCSStractor demo

Extracting selectors from HTML and generate CSS file.

hudochenkov/ecsstractor of VS Code version.

Usage

Open any HTML file and do the following:

  1. Open the command palette
    • Press Cmd + Shift + P on macOS or Ctrl + Shift + P on Windows / Linux
    • Go to View → Command Palette
  2. Typing the Run: eCSStractor and select

Then will see new tab with CSS selectors extracted from HTML file.

Example

Source:

<ul id="test-list" class="list">
  <li class="list-item">Test 1</li>
  <li class="list-item">Test 2</li>
  <li class="list-item">Test 3</li>
  <li class="list-item">Test 4</li>
  <li class="list-item">Test 5</li>
</ul>

Run eCSStractor:

#test-list {
}
.list {
}
.list-item {
}

Installation

In VS Code window:

  1. Open the extensions
    • Press Cmd + Shift + P on macOS or Ctrl + Shift + P on Windows / Linux
    • Go to View → Extensions
  2. Typing the ecsstractor in input form and select Install on eCSStractor
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft