G
G
Gregory2016-02-01 21:15:46
css
Gregory, 2016-02-01 21:15:46

How do CSS code hints work in PhpStorm?

A question. When I write HTML markup and give some classes to different tags, then if you go to the CSS file and describe this class, then for the first time you need to write it manually. That is, if I start typing .class_name , then after entering the dot, all new classes in HTML will not pop up in tooltips . If I have already used them in CSS then they will appear in tooltips, but not the first time they are used. Can this be fixed? And if I add, say, 10 divs with different classes, then if I enter a dot in CSS and start typing the first letters (or use horizontal ctrl + space ) they will show up in code tips the first time.
PhpStorm version 10.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman, 2016-02-11
@uaKorona

CSS is the source of classes
And when you enter a class name in HTML -> then PhpStrorm looks for it in CSS files. Those. These are links to class descriptions.
But if you enter only the class name in HTML and its description is absent in CSS, then there is, in fact, nowhere to refer to.
Well, in CSS, of course, if there is no such class, then there is nothing to suggest

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question