【问题标题】:autoformat multi-line comment to single line intellij将多行注释自动格式化为单行 intellij
【发布时间】:2019-04-05 07:23:45
【问题描述】:

我的代码在变量上包含单行 cmets(故意)。

  /** The object mapper. */
  @Autowired
  private ObjectMapper objectMapper;

但是当我 autoformat(ctrl+alt+l) 时,它会将单行注释更改为我不想要的多行注释。

我检查了 Intellij 的设置,但没有这样的选项。

【问题讨论】:

    标签: intellij-idea intellij-14


    【解决方案1】:

    经过调查,我找到了 intellij 的解决方案

    设置->编辑器->代码样式->java->java doc->其他(勾选不换行cmets)

    【讨论】:

      猜你喜欢
      • 2017-03-22
      • 1970-01-01
      • 2020-01-20
      • 1970-01-01
      • 2011-06-28
      • 1970-01-01
      • 2012-03-27
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多