Indentation Settings

Hello currently I try to get IntelliJ to format "like" Scalariform, however I have problems on the following things:


case class Demo(
name: String

Will always be formatted with 2 Spaces is there a way to force 4 spaces for case classes?


class Demo @Inject() (val hase: Hase) 
extends X {


Will always put the Inject()() together and the extend on 2 spaces but it should have 4 spaces.

Is there a way to do these things


1 comment
Comment actions Permalink
Official comment

As for indent, you can use Continuation indent 4 instead of 2. It will put parameter name and extends to the place you want.

For the space between parameter lists, you can use setting Spaces -> Before parentheses -> Method declaration parentheses.

Best regards,
Alexander Podkhalyuzin.

Please sign in to leave a comment.