How to setup IntelliJ IDEA to prevent splitting of anonymous class, declared by one line, into several lines during auto-reformating(CTRL+ALT+L)?
For example, to prevent splitting of
x = foo(new Boo() {});
into two lines:
x = foo(new Boo() {
});
How to setup IntelliJ IDEA to prevent splitting of anonymous class, declared by one line, into several lines during auto-reformating(CTRL+ALT+L)?
For example, to prevent splitting of
x = foo(new Boo() {});
into two lines:
x = foo(new Boo() {
});
"Settings"/"Code Style"/"Alignment and Braces":
==> "Keep when Reformatting" Field Set:
Check: "Simple methods in one line"
Check: "Simple blocks in one line"