When I format the xml using Ctrl+Shift+F the result is being like that:
But It would be nice if something can make xml like that:开发者_运维知识库
Is there any way to format the formatting on eclipse?
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
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.
精彩评论