IntelliJ Scala Plugin’s case class indentation is absurd

Try File -> Settings… -> Code Style -> Scala

There are lots of settings to customize your code formatting in there.

In the “Wrapping and Braces” tab, under “Method declaration parameters”:

  • check “use normal indent for parameters”
  • uncheck “Align when multiline”

This will change it to the example you provided.

If you want it to use the indenting in “Continuation indent” under “Tabs and Indent” you have to have both of the option above unchecked.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)