How to format html files in Eclipse?

后端 未结 5 1449
终归单人心
终归单人心 2021-01-31 02:01

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

5条回答
  •  不要未来只要你来
    2021-01-31 02:32

    go to Window --> preferences --> Web --> HTML files --> Editor.

    Make sure "Indentation Size" is not set to zero.

    That's what did it for me.

提交回复
热议问题