2011-08-11 28 views
2

是否可以配置eclipse來生成每個參數在不同行中的佈局參數?那就是:在多行(android)中的佈局參數

<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"> 

感謝

回答

4

可以呀,我該恨自己去偏愛:-)狩獵

的Eclipse>窗口>首選項> XML> XML文件>編輯器

這是'拆分多個屬性每個新的l INE」您要

Preferences

現在,當你想格式化,Ctrl + A(全選),然後按CTRL + SHIFT + F(這將格式化XML)