0

每当我在 Scala 项目中按Ctrl+ Alt+时, Intelli J Idea 12 都会在类成员之间插入新的空行。L例如:

class Class1 {
  private val val1 = ...
  private def def1 = ....
  private def def2 = ...
}

会变成

class Class1 {
  private val val1 = ...

  private def def1 = ....

  private def def2 = ...
}

我怎样才能让它不这样做?

4

1 回答 1

1

此行为由以下代码样式设置 ( Blank Lines| Around Method) 控制:

绕法

于 2013-05-28T03:40:37.473 回答