Sublime Forum

CSS class hints from *.css files in project when editing HTML?

#1

Hi Technical supporter,

I’m front-end developer, when I define some class in css file and reuse other css classes name of bootstrap, material, … . but when I put pointer at <div class=" pointer here "></div> then type Ctrl + Space, no css class drop down at hint window. (you can reference in Netbean IDE).

Thanks,
Hieu Tran

1 Like

#2

as far as I can see, there is no built-in completion in Sublime Text for any attribute values in HTML, unfortunately including class, and nothing seems to exist on Package Control for auto completing class names, but I’d love to be wrong… Thoughts, anyone?

I can see that the scope while inside a class="" attribute is unique - meta.attribute-with-value.class.html - and css class names appear in “Goto Symbol” so it ought to be possible to create a plugin to do it.

2 Likes

#3

Thank you very much! I have no experience about ST3 plugin development. I hope that we’ll have a plug-in for it soon.

0 Likes

#4

I might have a go at building a plugin for it, when I get chance :slightly_smiling:

1 Like

#5

it turns out that a package does exist for autocompleting CSS class names in HTML attributes:

1 Like