当我在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 = ...
}
如何让它不要这样做?
答案 0 :(得分:1)
此行为由以下代码样式设置(Blank Lines
| Around Method
)控制: