何度やっても同じ

ただの日記

IntelliJ IDEAでコードスタイルの設定

Preferences -> Editor -> Scala

とりあえず初期状態から下記のあたりを変更した。メソッド定義が長いときに引数を改行したら ( に整列するのは許せない。

Spaces -> Other -> New line after annotations ✓
Wrapping and Braces -> Keep when reformatting -> Simple blocks in one line ✓
Wrapping and Braces -> Keep when reformatting -> Simple methods in one line ✓
Wrapping and Braces -> Keep when reformatting -> Simple one-line lambdas in arg list ✓
Wrapping and Braces -> Method declaration parameters [Wrap if long]
Wrapping and Braces -> Method declaration parameters -> Align when multiline □
Wrapping and Braces -> Method declaration parameters -> New line after '(' ✓
Wrapping and Braces -> Method declaration parameters -> Place ')' on new line ✓
Wrapping and Braces -> Chained method calls [Chop down if long]