MCMatan
MCMatan

Reputation: 8833

VSCode HTML indentation, closing tag on same line

When using VSCode indentation on HTML file, tags closing brackets end up at the next line:

enter image description here

enter image description here

How can I fix this issue? I have searched for HTML indentation extension, with no success. Tnx

Upvotes: 2

Views: 5035

Answers (2)

Akil Makda
Akil Makda

Reputation: 431

Go to Settings -> search Word Wrap

"editor.wordWrap": "off"

May it help you.

Upvotes: 2

Mark
Mark

Reputation: 180855

It looks as if you may have:

"html.format.wrapAttributes": "force-expand-multiline"

Try "auto" or another of its options.

Or perhaps you have an extension that does the same as "force-expand-multiline".

Upvotes: 0

Related Questions