Cant break lines inside HTML tags in .php and .html files

Answered

Im new in PHPStorm so maybe Im missing something here, but why cant I add line braks inside a HTML tag?

In both .php and .html files, I can break lines normally (with the enter key) anywhere, except inside tags

Like, if I have:

<header>

-->cant add line breaks here

</header>

I hit enter, nothing happens. It simply does not works

This makes editing HTML inside the IDE simply impossible. What's going on?

edit: Im on linux (mint 17), using PHP Storm latest version (2016.3)

 

0
4 comments
Avatar
Permanently deleted user

Hello,

Unfortunately I cannot reproduce this.

Could you reproduce this issue and check if any errors are being thrown to the idea.log file (you can find it via Help > Show Log in ...)?

0

Hi. There's a lot of errors in the log

Ive uploaded it here:

https://drive.google.com/open?id=0B9sawPVxlJYAck8yQ0NSdjhDTzA

And here is a file where the problem is happening for me (but it will happen on any file with HTML on it):

https://drive.google.com/open?id=0B9sawPVxlJYAN25BRmpMRGFSUEU

And finally, Ive recorded a video of it happening, so you can understand better (and also you can see Im not crazy):

https://drive.google.com/open?id=0B9sawPVxlJYAR0JHdXBJYWxJZXM

 

As you can see, hitting enter will not add line breaks only if the cursor is inside a HTML tag. I can even put the cursor at the middle of the tag and break lines, but not in the inside of it (meaning <tag>[[HERE]]</tag>). Its pretty weird

0

That may seem unexpected, but please unpack the PhpStorm tar.gz to some other folder (not to the same), run it from there and check if the issue persists.

0

Alright, it worked, its fixed. Thank you a lot

0

Please sign in to leave a comment.