1
我希望eclipse将我的xml格式化为像下面的代码那样的列。有没有什么可能的方式在eclipse中做到这一点?我尝试过首选项 - > XML->编辑器,并更改了一些设置,但我无法获得我完全想要的格式。如果有人知道这些设置,你可以告诉我吗?定制xml格式化eclipse
<ListView
style = "@style/listview"
android:layout_below = "@+id/plu_enter_layout"
android:layout_above = "@+id/fpc_scan_again"
android:fadeScrollbars = "false"
/>
<LinearLayout
android:layout_width = "wrap_content"
android:layout_height = "wrap_content"
android:layout_alignParentTop = "true"
android:layout_centerHorizontal = "true"
android:layout_marginTop = "20dp"
android:orientation = "horizontal"
>
[在Eclipse中格式化XML代码]可能的重复(http://stackoverflow.com/questions/4527474/format-xml-code-in-eclipse) – SANN3
我试过这个,无法让我的代码分裂成列。 –