scala lang intellij idea 中的正确代码样式规则是什么,在重新格式化(Ctrl + Alt + l
)之后将导致所需的格式?
格式化:
def withStatement[A](block: Statement => A): A =
connection
.createStatement()
.withFinally(_.close())(block)
所需格式:
def withStatement[A](block: Statement => A): A =
connection
.createStatement()
.withFinally(_.close())(block)