Willy G
Willy G

Reputation: 1252

IntelliJ multiline ternary indentation

My indentation setting is set to one tab. However, when I format my code, multiline ternary operators are formatted with two tabs indent (should be one tab there as well). See below.

enter image description here

These are the only related settings I can find and tweaking them doesn't seem to change the indentation.

enter image description here

These are my indentation settings:

enter image description here

Is there another setting to control this?

Upvotes: 1

Views: 1274

Answers (1)

Egor Klepikov
Egor Klepikov

Reputation: 5809

You may configure these settings in Preferences | Editor | Code Style | Language | Tabs and Indents.

The "Indent" and "Continuation Indent" attributes must be set to "1" in your case.

Upvotes: 1

Related Questions