【发布时间】:2011-08-26 14:23:00
【问题描述】:
当我在 Eclipse (Indigo) 中格式化我的 JSF 标记时,我发现相当短的代码行被分成了更多行。
让我用一个例子来解释这个问题,看看下面的标记:
bgcolor="<h:outputText
value="#{formBean.colorPreferences.background}"/>"
text="<h:outputText
value="#{formBean.colorPreferences.foreground}"/>
以上标记已被分成 4 行(格式化后),但我更喜欢格式化标记如下:
bgcolor="<h:outputText value="#{formBean.colorPreferences.background}"/>"
text="<h:outputText value="#{formBean.colorPreferences.foreground}"/>
有什么方法可以根据我的喜好来配置 Eclipse 编辑器吗?
【问题讨论】:
标签: eclipse jsf jakarta-ee ide