1
什么是适当的代码风格规则intellij思想为斯卡拉lang后重新格式化(Ctrl + Alt + l
)将导致所需的格式?intellij想法scala格式化
要格式:
def withStatement[A](block: Statement => A): A =
connection
.createStatement()
.withFinally(_.close())(block)
所需的格式:
def withStatement[A](block: Statement => A): A =
connection
.createStatement()
.withFinally(_.close())(block)