当我在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编辑器?
答案 0 :(得分:1)
是的,您只需要将您感兴趣的文件类型的行宽更改为您想要的任何内容:
Window -> Preferences -> Web -> HTML Files -> Editor
并将线条宽度设置为您想要的任何颜色。