Box-Of-Hats / Bem-VSCode-Extension

A VSCode extension for helping with inserting BEM (Block-Element-Modifier) classes.
BSD 3-Clause "New" or "Revised" License
29 stars 5 forks source link

Generate CSS selectors from current selection in HTML files #8

Closed AloisJanicek closed 5 years ago

AloisJanicek commented 5 years ago

I would really appreciate if I could generate CSS selectors from just current selection in HTML file as in opposite to generating CSS selectors for whole HTML file. I find myself building stuff gradually and I often add new BEM components to existing HTML files. Extracting only newly added selectors / components from generated stylesheet is little inconvenient. But still 100x more convenient then writing them "manually" like I did before 👍

Box-Of-Hats commented 5 years ago

I can see how this would be a big help. I'll get right on it!

Box-Of-Hats commented 5 years ago

That's now added in version 0.7.2.

The new command Bem Helper: Generate Stylesheet From Selection should do exactly what you're after :)

Commit details

AloisJanicek commented 5 years ago

Thank your very much, you are awesome. Works flawlessly 👍

Box-Of-Hats commented 5 years ago

Thanks for the suggestion. I'm glad I could be of help