I've been using PhpStorm for a long time and I haven't had this problem before. The problem is that when I type some pare tag, for example, <div></div> (there is indent from the beginning of the line) and the cursor is in the middle of this tag and after I push Enter button the closing tag just goes to the beginning of the line.
The interesting fact that in .php file everything is OK. The problem only with .html extension. I just don't know what I could do to make IDE acts like this.
I have already checked all the adjusting in the Preferences -> Code style -> HTML. Everything is the same as in PHP (and I've pushed the button "Restore Defaults").
It works like that (after pushing Enter button):
And I want it be like that: