IntelliJ IDEA has built-in functionality for XML reformatting (Code | Reformat Code). You can configure formatting options in Settings | Editor | Code Style | XML.
Answer from yole on Stack OverflowIntelliJ IDEA has built-in functionality for XML reformatting (Code | Reformat Code). You can configure formatting options in Settings | Editor | Code Style | XML.
IntelliJ supports reformatting XML out of the box without the need for plugins.
From the official help at https://www.jetbrains.com/help/idea/2016.2/reformatting-source-code.html#d1711579e29 :
Reformatting code for the current file
To reformat code for the current file, follow these steps:
In the editor of the currently opened file, press Ctrl+Shift+Alt+L. Note that if you select Code | Reformat Code from the main menu or press Ctrl+Alt+L, IntelliJ IDEA will try to reformat the source code automatically without opening the Reformat File dialog. In the Reformat File dialog, specify options for the reformatting and click Run.