xml-formatter package
Simple XML Formatter
Formatter
hit CMD-SHIFT-X
on a Mac or SHIFT-CTRL-X
on Windows or Linux.
Minify (remove spaces and linebreaks)
hit CMD-SHIFT-M
on Mac or SHIFT-CTRL-M
on Windows or Linux.
Preview
Settings
XML UTF-8 header (default)
- Force
<?xml version="1.0" encoding="UTF-8"?>
in header xml
Use Tab
- Use tab instead of spaces
Indent Character
- Set the indent character (only if you don't use tab)
Number Char Indent
- Default 2
End Line Character
- You can choose :CR+LF or LF