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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With