Home > Net >  Prevent wrapping inline CSS lines in VS Code
Prevent wrapping inline CSS lines in VS Code

Time:12-16

I've been working with tailwind for a while, and I'm starting to get annoyed by VS Code wrapping class names to one per line. This is what I mean

                        <div
                          
                        >

It is indeed more readable, but even short snippets become incredibly long to scroll. I tried every single setting in VScode, (Settings > Html > Format) to no avail. That one specific div does not wrap if I cut the content where "items" ends in items-center. I'd really like to increase the limit if possible.

CodePudding user response:

You need to put them back togather and then use VS code extinsion called: beautify for your codes.

CodePudding user response:

try some extensions like Beautify and Prettier.

I personally use Prettier. enter image description here

enter image description here

  • Related