HTML-CSS-Class-Completion
HTML-CSS-Class-Completion copied to clipboard
Class name completion for CSS files
Right now this extension provides CSS class name completion for the HTML class attribute. I think it would be great if it also support class name completion for CSS files, because usually I (and probably most of developers) write HTML and then create CSS for it.
Sorry, I might not have understood your suggestion. Do you mean class name completion when you're in a CSS file writing definitions, and then you reference other classes' names?
My guess, pretty sure this is what was meant, was that @olhapi was wanting the ability to have class names from your HTML show up in autocomplete when you are in your CSS.
For example:
<div class="some-class">Blarg.</div>
Then when you are in a CSS file you could type:
.some-
... And your autocomplete (intellisense) would have .some-class
as an option.
Well, that's an interesting proposal. Got it!
@onetrev exactly what I meant to say.
Chiming in to say I was looking for exactly this. Some bigger IDEs offer it, and I've gotten into the habit of writing my CSS after my HTML. Being able to automatically complete class names chosen in the HTML file really speeds things up.
@olhapi @CoolMatty may be you can try this https://marketplace.visualstudio.com/items?itemName=zitup.classnametocss