【问题标题】:Eclipse JSF editor configurationEclipse JSF 编辑器配置
【发布时间】: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


    【解决方案1】:

    是的,您只需将您感兴趣的文件类型的线宽更改为您想要的任何内容:

    Window -> Preferences -> Web -> HTML Files -> Editor
    

    并将线宽设置为您想要的任何值。

    【讨论】:

      猜你喜欢
      • 2012-09-23
      • 1970-01-01
      • 1970-01-01
      • 2011-03-02
      • 1970-01-01
      • 2021-07-23
      • 1970-01-01
      • 1970-01-01
      • 2019-01-30
      相关资源
      最近更新 更多