Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse AndroidManifest.xml format

When I format the xml using Ctrl+Shift+F the result is being like that:

This is the result of Ctrl+Shift+F

But It would be nice if something can make xml like that:

But I want to have this

Is there any way to format the formatting on eclipse?

like image 472
uzay95 Avatar asked Jun 14 '11 13:06

uzay95


2 Answers

For XML you should go Window->Preferences->HTML Tidy-> XML and select "Input XML"

If you like to see every attribute in separate line like me, you should check Wrap attribute values and Indent attributes checkboxes

If you like to see every attribute in separate line like me, you should check Wrap attribute values and Indent attributes checkboxes

like image 142
uzay95 Avatar answered Oct 04 '22 04:10

uzay95


You don't need that plug-in! To have all the attributes on their own lines, go to: Window→Preferences→XML→XML Files→Editor and check Split multiple attributes each on a new line.

Then Ctrl+Shift+F to auto-format.

like image 39
L Co Avatar answered Oct 04 '22 03:10

L Co