eCSStractor for VS Code
Extracting selectors from HTML and generate CSS file.
hudochenkov/ecsstractor of VS Code version.
Usage
Open any HTML file and do the following:
- Open the command palette
- Press
Cmd + Shift + P on macOS or Ctrl + Shift + P on Windows / Linux
- Go to
View → Command Palette
- 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:
- Open the extensions
- Press
Cmd + Shift + P on macOS or Ctrl + Shift + P on Windows / Linux
- Go to
View → Extensions
- Typing the
ecsstractor in input form and select Install on eCSStractor
| |