Eclipse:新行上的未知标签

标签 eclipse angularjs

我正在为 HTML 使用自定义标签(使用 AngularJs)。我希望 eclipse 中的格式如下所示:

预期的:

<tabset>
    <tab heading='Series'>
        something
    </tab>
    <tab heading="Input Controls">
        something
    </tab>
    <tab heading='Options'>
        something
    </tab>
</tabset>

在eclipse中格式化后
    <tabset> <tab heading='Series'> something </tab> <tab heading="Input Controls"> something </tab> <tab
                heading='Options'> something </tab> </tabset>

一切都被强制到单行。

How to control the flow of unknown elements/tags in eclipse?



谢谢,

最佳答案

您也可以在 XML Editor 中打开您的文件而不是 HTML Editor .它可能会很好地格式化您的标签。

关于Eclipse:新行上的未知标签,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20760628/

相关文章:

angularjs - 在 tsconfig 中显式包含类型的最佳方法是什么?

java - 无法使用 Eclipse 和 Tomcat 8.5 构建项目

android - ADK 和 Eclipse 问题 - com.android.future 和 USBAccessory?

eclipse - 2 个具有相同工作区的 Eclipse 版本

javascript - id 属性的 AngularJS 增量值

java - 通过 hibernate 将 DateTime 列存储在 h2 数据库中

java - 有没有办法让 Junit3 成为 Eclipse 3.4.0 中的默认测试运行器?

java - Android:代码仅适用于 onCreateOptionsMenu,不适用于 OnCreate

angularjs - Karma 找不到模块 'optimist'

javascript - 针对常量求值的 Angular 表达式