pawel.panasewicz
pawel.panasewicz

Reputation: 1833

intellij idea scala formatting

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

Answers (1)

Andriy Plokhotnyuk
Andriy Plokhotnyuk

Reputation: 7989

Please try reset value of the continuation indent to 0 for Scala code style as in following screenshot.

enter image description here

Upvotes: 2

Related Questions