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>
Please sign in to leave a comment.
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>.xmlif you are using IDE-level scheme, or.idea\codeStyles\Project.xmlwhen using a project scheme)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.