HTML-CSS-Class-Completion icon indicating copy to clipboard operation
HTML-CSS-Class-Completion copied to clipboard

Class name completion for CSS files

Open olhapi opened this issue 6 years ago • 6 comments

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.

olhapi avatar Dec 15 '17 01:12 olhapi

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?

zignd avatar Feb 17 '18 21:02 zignd

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.

onetrev avatar Feb 20 '18 00:02 onetrev

Well, that's an interesting proposal. Got it!

zignd avatar Feb 20 '18 02:02 zignd

@onetrev exactly what I meant to say.

olhapi avatar Apr 05 '18 17:04 olhapi

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.

CoolMatty avatar Jun 08 '18 16:06 CoolMatty

@olhapi @CoolMatty may be you can try this https://marketplace.visualstudio.com/items?itemName=zitup.classnametocss

zitup avatar Sep 15 '20 07:09 zitup