【发布时间】:2014-02-13 06:30:29
【问题描述】:
我希望 Eclipse 将我的 xml 格式化为如下代码所示的列。有没有办法在eclipse中做到这一点?我已经尝试过 Preferences->XML->Editor 并更改了一些设置,但我无法获得我想要的格式。如果有人知道这些设置,你能告诉我吗?
<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"
>
【问题讨论】:
-
我已经尝试过了,但无法将我的代码拆分为列。