vscode-xml icon indicating copy to clipboard operation
vscode-xml copied to clipboard

Prevent formatting of line breaks

Open pierrecorsini opened this issue 5 years ago • 1 comments

Description How to configure the extension to preserve the line breaks ?

When you format

<a b="1"
     c="2" />

you end up with

<a b="1" c="2" />

For instance you would like keep line breaks to avoid 500+ characters long lines... This would be convenient to preserve it :)

Current Workarounds None

pierrecorsini avatar Apr 17 '20 22:04 pierrecorsini

Have you tried using the xmlTools.splitAttributesOnFormat setting? If so, what about its behavior isn't meeting your needs? Just trying to determine if this is related to another feature request I have queued up or not.

Thank you!

DotJoshJohnson avatar Jul 09 '20 03:07 DotJoshJohnson