On Mon, Feb 13, 2012 at 7:01 AM, John Goche <[email protected]>wrote:
> Hello,
>
> I've recently reinstalled eclipse and ADT and android plugin for eclipse.
> I am trying to set the formatting properties for my projects by going to
> Preferences -> XML -> XML Files -> Editor and setting them, but when
> I save and do a CTRL-SHIFT-F eclipse behaves as if I never set any of
> them. Anyone have this problem or know how to fix it?
>
Go to Preferences -> Android -> Editors and uncheck the first option
("Format XML files using the standard Android XML style rather than
the configured Eclipse XML style (additional options below)".
The builtin Eclipse XML formatter isn't suitable for formatting XML files
the "standard" Android way (where for example layouts and value files are
formatted differently), so in Android projects we use an alternate
formatter (which also sorts attributes etc). If you uncheck the option
above, it will just use the default Eclipse XML formatter instead.
-- Tor
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en