Format XML code in Eclipse

前端 未结 6 559
面向向阳花
面向向阳花 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:47

    You can set the default XML editor to “Java Editor”:

    • Right-click on the XML
    • Open With
    • Other...
    • Java Editor

    This applies all java formatting and controls over XML file.

提交回复
热议问题