Miroslav Hruška
Miroslav Hruška

Reputation: 51

PhpStorm - html classes suggestions

Is it possible to suggest css classes from my css files in PhpStorm when coding html templates? In Netbenas, this was pretty awesome function and I would like to use this in PhpStorm too.

enter image description here

Upvotes: 0

Views: 641

Answers (2)

Alex.Me
Alex.Me

Reputation: 31

Also consider to exclude <style> tags inside your template files. I was desperately googling until I found this thread in jetbrains support forums

I really had some included styles in template and this was the problem.

Upvotes: 1

Rahul Kashyap
Rahul Kashyap

Reputation: 977

Yes you can. PhpStrom is very smart it automatically includes every single css class which we written in your stylesheets, Just simply add your any CSS classes in your stylesheets,

Eg: You have style.css and now you want to use a class my-class{background-color: green;} if your CSS is included in your project then it will automatically show up in your HTML code when you write it.

enter image description here

enter image description here

Upvotes: 1

Related Questions