Reputation: 1833
What are proper code style rules in intellij idea for scala lang which after reformat (Ctrl + Alt + l
) will result into Desired formatting ?
To format :
def withStatement[A](block: Statement => A): A =
connection
.createStatement()
.withFinally(_.close())(block)
Desired formatting:
def withStatement[A](block: Statement => A): A =
connection
.createStatement()
.withFinally(_.close())(block)
Upvotes: 1
Views: 2323
Reputation: 7989
Please try reset value of the continuation indent to 0 for Scala code style as in following screenshot.
Upvotes: 2