eclipse: autoindent for xml (particularly build.xml) files?
-
18-09-2019 - |
Question
I really like Eclipse's autoindent feature for .java files, but when I hit Ctrl-I with build.xml open, it just erases the selection.
Is there any way to get autoindent for .xml files working in Eclipse?
Solution
The Java Developers and RCP/Plug-in Developers packages of Eclipse include an XML editor which supports auto indentation of XML files.
Best wishes,
Fabian
OTHER TIPS
In the xml perspective under Source there is a Format option (CTRL+Shift+F)
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow