【问题标题】:Eclipse Not Wrapping Class CommentsEclipse 不包装类注释
【发布时间】:2014-11-29 18:19:48
【问题描述】:

我按 Ctrl-Shift-F 来自动格式化。方法 cmets 被包装,但类 cmets 没有被包装。有什么设置可以解决这个问题吗?

【问题讨论】:

    标签: java eclipse comments javadoc


    【解决方案1】:

    就像here 解释的那样,您可以在Window -> Preferences -> Java -> Code Style -> Formatter 中找到格式定义。编辑你点击Edit...

    如果您想在 Eclipse 中使用自动换行(换行),可以使用附加插件提供的解决方案:word-wrap

    【讨论】:

      【解决方案2】:

      我真正想要的是:Window -> Preferences -> Java -> Code Style -> Formatter -> Edit -> Enable header comment formatting。

      【讨论】:

        猜你喜欢
        • 2017-07-31
        • 2011-01-14
        • 2012-10-03
        • 2013-11-03
        • 2013-12-01
        • 2015-11-18
        • 2015-07-15
        • 2022-09-21
        • 1970-01-01
        相关资源
        最近更新 更多