Thursday, July 28, 2016

Intellij Scala class definition formatting

Leave a Comment

How can I get Intellij format my Scala class definition like this:

sealed class Traffic(     private[this] val javaTraffic: Traffic.JavaTraffic,     private[this] val sanitizer: Sanitizer)   extends Serializable with Logger { 

Basically 4 indents for member declaration on each line, and 2 indents for class inheritance.

0 Answers

If You Enjoyed This, Take 5 Seconds To Share It

0 comments:

Post a Comment