IntelliJ Scala Indenting class

This question may have been asked, but I didn't find a suitable answer, so I am posting this as a question here. The problem is, when I create a new case class, the indentation looks so strange.

case class SomeCaseClass(
                         id: Int
                        )

      

I would prefer it to be like this:

case class SomeCaseClass(
  id: Int
)

      

I just would like to know which option in IntelliJ would get me away with this awkward indentation.

+3


source to share


1 answer


Ok I figured out how to do it. Here's what to do:

  • If you are on Mac select IntelliJ -> Preferences
  • Select Editor -> Code Style -> Scala
  • On the Wrapping and Anchoring tab, uncheck the "Indented" box


Hope this helps someone who may be facing the same issue!

+3


source







All Articles