When I open an svg or xml file and try to run "Format Document" I get the message:
There is no document formatter for 'xml'-files installed.
To overcome that I usually just do "Language Mode" -> select HTML -> "Format Document".
Is it possible to use the HTML formatter for XML and SVG?
P.S I rather not install extensions.
You should be able to override any extension to the language of your choice:
"files.associations": {
"*.xml": "html",
"*.svg": "html",
}
Chuck that in your settings.json
and you should be golden (although, I recommend not doing this, but it's your life)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With