[英]Layout params in multiline (android)
是否可以配置 eclipse 以生成布局參數,每個參數在不同的行中? 那是:
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:id="@+id/linearLayout1"
android:orientation="vertical">
</LinearLayout>
而不是
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:id="@+id/linearLayout1" android:orientation="vertical">
提前致謝
是的,你可以,我自己也討厭這個,所以去尋找偏好:-)
Eclipse > Window > 首選項 > XML > Z3501BB093D363810B67CFZ 文件 > 編輯器 >1058B
這是您想要的“在新行上拆分多個屬性”
現在當你想格式化它時,CTRL+A(全選)然后 CTRL+SHIFT+F(這將格式化你的 XML)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.