我正在为 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/