在IntelliJ Idea 12中按Ctrl + Alt + L和新的空白行

时间:2013-05-28 02:59:41

标签: scala intellij-idea ide

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

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

将成为

class Class1 {
  private val val1 = ...

  private def def1 = ....

  private def def2 = ...
}

如何让它不要这样做?

1 个答案:

答案 0 :(得分:1)

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

around method