Format XML code in Eclipse

前端 未结 6 567
面向向阳花
面向向阳花 2020-12-02 17:52

When I write .xml files in Eclipse, I often have to manually indent code. For example




        
6条回答
  •  长情又很酷
    2020-12-02 18:49

    open windows->preferences->xml files->editor enter some high number for line width, say 999 and then format the xml file with ctrl+shift+F.

    You ll see the lines are aligned properly.

提交回复
热议问题