DotJoshJohnson / vscode-xml

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

Feature: Minify Selection #302

Closed andrewhcmc closed 3 years ago

andrewhcmc commented 4 years ago

Hi,

I find your XML Tools extension very useful. There is one feature that would be nice to have. I am often pulling xml messages out of log files for a JMS-based application and using them to create test files. These messages can be formatted with newlines or single-line depending on source.

The minify option is useful for making them consistently single-line, but preferably as one xml message per line rather than minify putting everything on one line.

Would it be possible to add a "Minify Selection" option, similar to Format Selection?

I can still use minify and search for "<?xml" to insert line breaks manually but if there was a Minify Selection option that would be really helpful.

Thanks,

Andrew