code completion not working for IDs in DIV. Works fine in SPAN, LI, etc

Hello,

I've been using Dreamweaver for PHP coding and felt like it's time to move to a proper IDE. I've been testing out PHPStorm and one thing is driving me batty. It's in regards to adding css styles to my HTML. When I type "<div id="" and hit ctrl+space, it should bring up the code completion hints for all my CSS ID definitiions, but it doesn't. it seems to bring up some other XML or other form of tags that I don't want. (image below)
divtest.png

If I type then it brings up the appropriate class definitions, so that seems to work fine. but not IDs. I've tried using SPAN and UL and when i type ID and hit ctrl+space, it brings up the correct list: (image below)
spantest.png
litest.png

Does anyone know why this is happening and how to fix it? I've tried to research it as much as I can here, but searching for 'div' 'id' 'css' is pretty broad. Any help would be great!

2 comments

Awesomely quick response! and it helped! For anyone else having this issue, I went to Settings > Language Injections and unchecked the "xml: div/@id".

So simple! Thanks! Now to enjoy the rest of this program!

0

Please sign in to leave a comment.