PyCharm Emmet Multiple Formatting Question (ex: .p-4*3)

In PyCharm, using Emmet, if I do:

.p-4*3<TAB>

It outputs all on one line:

<div class="p-4"></div><div class="p-4"></div><div class="p-4"></div>

Is there a way to make it output this after pressing <TAB>:

<div class="p-4"></div>
<div class="p-4"></div>
<div class="p-4"></div>

 

0
2 comments

Please make sure that Single line is not checked in Settings | Editor | Emmet | HTML, Filters enabled by default;

if it's off, please share your code style preferences (~/.PyCharm2019.3/config/codestyles/<scheme name>.xml if you are using IDE-level scheme, or .idea\codeStyles\Project.xml when using a project scheme)

1

Ah ha. Looking at the codestyles .xml file lead me to look at the "Keep White Space" setting.

Apparently (at least, for me), when this box is checked, .p-4*3<TAB> puts it all on one line. If this is unchecked, it puts each div on a new line as I wanted.

Thanks again Elena!! Very helpful.

1

Please sign in to leave a comment.