T
T
tyoma_koder2021-09-09 13:52:02
Visual Studio Code
tyoma_koder, 2021-09-09 13:52:02

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"
      >

but it should be
<div attr1="value"
        attr2="value"
        attr3="value">

I went into the settings, unchecked the picril, nothing changed, after restarting vs code too
6139e6ccdb979907572898.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
I Phoenix I, 2021-09-14
@PhoenixX33i

In Prettier settings: "html.format.wrapAttributes": "force-aligned"
Source

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question