IntelliJ IDEA lets you refactor your XML code.
The XML refactoring support is based on the Refactor-X plugin. This plugin is bundled with the IDE and enabled by default.
To access XML refactoring commands, you can use the main menu or the context menu in the editor:.
The following refactorings are available: