irregular
irregular

Reputation: 1587

Intellij: How to indent 2 spaces of next line from beginning of the previous line?

enter image description here

The current indentation looks like this for the case class Foo but I'd like the indent for a and b to be 2 spaces indented from the beginning of the previous line like so

case class Foo(
  a: Int,
  b: Int
)

Is this possible? Where in the settings for Intellij is that?

Upvotes: 2

Views: 1989

Answers (1)

sarveshseri
sarveshseri

Reputation: 13985

You need to change following preferences in IntelliJ. Uncheck the one pointed by red arrow (Align when multiline) and check the one pointed by green (Use normal indent for parameters).

Now idea will use "normal indent" for parameters, so you need to check what your normal indent scheme is.

enter image description here

Upvotes: 3

Related Questions