19 Replies Last post: Mar 16, 2013 9:28 PM by Jason Schoeman  
Jason Schoeman Newbie 15 posts since
Mar 13, 2013
Currently Being Moderated

Mar 16, 2013 1:09 PM

PHPStorm 6 CSS Class completion not working?

Something strange I have noted in PHPStorm 6 is its inability to complete css classes in HTML. I think this is such a usefull features. As an example, even if I manually add the file in the HTML it does not auto complete:

 

For example, adding:

<link rel="stylesheet" href="/themes/default/bootstrap/css/bootstrap.css" type="text/css">


...

 

Wont auto complete if you type:

<i class="icon-..."></i>

 

Is there somthing that is turned off by default now?

Piotr Rybaltowski Newbie 9 posts since
Dec 23, 2011
Currently Being Moderated
Mar 16, 2013 3:01 PM in response to: Jason Schoeman
Re: PHPStorm 6 CSS Class completion not working?

Work's for me in 6.0 (127.100). It's turned on by default. Try reviewing your settings.

Piotr Rybaltowski Newbie 9 posts since
Dec 23, 2011
Currently Being Moderated
Mar 16, 2013 7:30 PM in response to: Jason Schoeman
Re: PHPStorm 6 CSS Class completion not working?

Did you try it both times on same project or a directory with exactly same content?

Piotr Rybaltowski Newbie 9 posts since
Dec 23, 2011
Currently Being Moderated
Mar 16, 2013 7:45 PM in response to: Jason Schoeman
Re: PHPStorm 6 CSS Class completion not working?

Actually I tried it on .phtml file before. I just created an .html file and it still works perfectly. It was an empty file with just a <div> and class. It wasn't even in a directory with any of the CSS files.

Piotr Rybaltowski Newbie 9 posts since
Dec 23, 2011
Currently Being Moderated
Mar 16, 2013 7:57 PM in response to: Jason Schoeman
Re: PHPStorm 6 CSS Class completion not working?

To make it even more interesting - I work on Linux Ubuntu 12.10


Andriy Bazanov Master 2,747 posts since
May 28, 2010
Currently Being Moderated
Mar 16, 2013 8:42 PM in response to: Jason Schoeman
Re: PHPStorm 6 CSS Class completion not working?

Hi there,

 

Please provide some small and simple but standalone (self-contained) project (the whole project, including .idea subfolder; must include all required files).

Andriy Bazanov Master 2,747 posts since
May 28, 2010
Currently Being Moderated
Mar 16, 2013 8:54 PM in response to: Jason Schoeman
Re: PHPStorm 6 CSS Class completion not working?

That is correct:

  1. If you have style (or appropriate link) tag(s) in your file, IDE will offer entries from them ONLY
  2. If none of those tags are found, IDE will offer entries from all .css files
Andriy Bazanov Master 2,747 posts since
May 28, 2010
Currently Being Moderated
Mar 16, 2013 8:44 PM in response to: Jason Schoeman
Re: PHPStorm 6 CSS Class completion not working?

What tags? I see no screenshots at all (in any of your posts)

More Like This

  • Retrieving data ...