HTML emmet at the same line

In WebStorm 2020.2  when typing a list of values, for example: nav>ul>li*5. 

I get everything on one line. How can I make tags appear on individual lines? 

See images below if I miss smth. 

 

0
7 comments

for me, the generated code is formatted as

<nav>
<ul>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
</ul>
</nav>

when using default code style preferences.

Please try running Code > Reformat Code after expanding the abbreviation - what does the formatting look like?

0
Avatar
Permanently deleted user

Hey Elena, 

Why I run Code > Reformat Code it's working (image 1). 


I tested to make first div and then do same things nav>ul>li*5, see image 2 below.
It looks like it not working at body but when i have div everything is fine.

0

Not sure I follow you... From your screenshot it seems that it works as expected at body as well - code is properly formatted

0
Avatar
Permanently deleted user

Sorry for the wrong explanation.
I mean it works as expected when I type first div and then inside div nav>ul>li*5 as image 2. 
When I don't have a div and will use it immediately in body nav>ul>li*5 get inline everything and I am forced to use  Code > Reformat Code

0

Works fine for me

 

could you record a screencast that shows up the issue?

0
Avatar
Permanently deleted user

Something was wrong in my settings, after restart to default settings works as expected. 
Thread can be closed.

Thanks Elena ! 

Best regards 

/Matteus

1

Great, thanks for update!

0

Please sign in to leave a comment.