Community
Participate
Working Groups
I want to preserve 1 empty line only in block of codes, but not in class definition, conditional statements, methods, etc... So I set 1 line to preserve, but it preserves for everything. For example: public class A extends B implements I { public void method() throws Exception { if (1 > 2) { C.method(); D.method(); } else { C.method(); D.method(); } } } gets formatted as public class A extends B implements I { public void method() throws Exception { if (1 > 2) { C.method(); D.method(); } else { C.method(); D.method(); } } } instead of public class A extends B implements I { public void method() throws Exception { if (1 > 2) { C.method(); D.method(); } else { C.method(); D.method(); } } }