This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
In Tools -> Options -> Java Code -> Formatting -> Blank Lines, there should be additional options for initializer blocks (static or non-static). Otherwise there's no way to specify how they should be separated from other class elements. Currently you end up with formatting like the following (no blank lines around initializer blocks): public class Test { public void f() { // whatever } { // instance initialization } static { // static initialization } }
Formatting options for methods should be used now when formatting initializer blocks. Checking in Reformatter.java; /cvs/java/source/src/org/netbeans/modules/java/source/save/Reformatter.java,v <-- Reformatter.java new revision: 1.24; previous revision: 1.23 done Marking as ENHANCEMENT.