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 Java, Tools/Options/Editor/Formatting/Java/Comments/Format Block Comments off. Consider comment like this: /* private void t() { if (true) { System.err.println(1); } } */ Select the comment and call format. The result is something like this: /* private void t() { if (true) { System.err.println(1); } } */ Which is (at least in this case) undesirable.
Fixed in jet-main#612c81c4b3fa
Integrated into 'main-silver', will be available in build *201408260001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/612c81c4b3fa User: Svata Dedic <sdedic@netbeans.org> Log: #225805: block comment contents is preserved verbatim except last only-whitespace line with end-comment marker