DotJoshJohnson / vscode-xml

XML Tools for Visual Studio Code
MIT License
320 stars 87 forks source link

Prevent formatting of line breaks #307

Open pierrecorsini opened 4 years ago

pierrecorsini commented 4 years ago

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

DotJoshJohnson commented 4 years ago

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!