【问题标题】:custom xml formatting eclipse自定义xml格式化eclipse
【发布时间】: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" 
    >

【问题讨论】:

标签: java xml eclipse


【解决方案1】:

你可以试试这个插件:http://editorxml.sourceforge.net/contentAssit.html

看起来模板部分就是你要找的。​​p>

希望对你有帮助。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2011-08-15
    • 2014-02-15
    • 2010-10-03
    • 2010-12-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多