How can I align on colons in scalariform?

31 Views Asked by At

I have a case class like this:

case class Foo(
  one: String,
  another: Int,
  stuff: Boolean
)

Is there a setting in scalariform to get this? (aligned on the colon)

case class Foo(
  one    : String,
  another: Int,
  stuff  : Boolean
)

I'm using sbt-scalariform with a setting setPreference(AlignParameters, true)

1

There are 1 best solutions below

0
jkinkead On

This is not currently supported. There are a number of feature requests related to enhanced alignment of parameters to class and method definitions.