How to configure spotless google formatter to format braces

1.2k views Asked by At

How to configure spotless google formatter to format braces in 2 lines instead of a single line

-    void contextLoads() {}
+    void contextLoads() {
+    }
1

There are 1 answers

0
jqno On BEST ANSWER

You can't. From google-java-format's README:

Note: There is no configurability as to the formatter's algorithm for formatting. This is a deliberate design decision to unify our code formatting on a single format.