views:

165

answers:

1

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?

+1  A: 

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

halfdan
So does the WTP (Web Tool Package).
Kees de Kooter
and... er... how do I find out whether my eclipse version is one of the packages you mention? if not how do I modify this?
Jason S
Problem solved... I had my build.xml file opened in the text editor, not the XML editor. In the XML editor (built into the standard Java version of Eclipse), it works fine.
Jason S