DotJoshJohnson / vscode-xml

XML Tools for Visual Studio Code
MIT License
322 stars 86 forks source link

Add the ability to allow multiple spaces between attributes #246

Open ghost opened 5 years ago

ghost commented 5 years ago

My problem is, that I have a lo of text where I need to arrange the Attributes in a column (for better readability)

image

It would be great if you had a setting like "disable autoformat spaces between attributes" Currently, I comment out the following line of following file, what does the job for me:

File "v2-xml-formatter.ts" //xml = xml.replace(/"\s+(?=[^\s]+=)/g, "\" "); // spaces between attributes