Reputation: 2709
Is it possible in scalafmt to set intendation to be like in intellij formatter so just after ending of (
ie:
case class SomeMessage(
id: UUID
)
I see only ability to setup tab numbers but its counted from line start not open bracket position
Upvotes: 1
Views: 501
Reputation: 3638
By default verticalMultiline.newlineAfterOpenParen
is set to false
. By adding the following lines to your scalafmt file you can override this config
continuationIndent.defnSite = 2
verticalMultiline.atDefnSite = true
verticalMultiline.arityThreshold = 2
verticalMultiline.newlineAfterOpenParen = true
Please refer link for examples.
Upvotes: 0