Answer the question
In order to leave comments, you need to log in
How to disable wrapping > to a new line in prettier?
I work in vs code
There is html, prettier formats it like this
<div
attr1="value"
attr2="value"
attr3="value"
>
<div attr1="value"
attr2="value"
attr3="value">
Answer the question
In order to leave comments, you need to log in
In Prettier settings: "html.format.wrapAttributes": "force-aligned"
Source
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question