The XML formatting works perfect but not the html formatting. In fact if I use \"cmd-shift-F\" for a html file, it just left aligns almost everything. I\'ve attached the before
go to Window --> preferences --> Web --> HTML files --> Editor.
Make sure "Indentation Size" is not set to zero.
That's what did it for me.