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.
Created attachment 144750 [details] screen capture of the sample code It happens when part of the brace is a conditional code as below (also as attached). There is also an auto-indenting problem as you can see. void test(void) { #if 1 if (1) { #else if (0) { #endif } }
Confirmed. Indenter doesn't work correctly. While formatter works fine for such cases. For now you can use workaround: select your text and reformat it.
fixed brace patcing part, change set: http://hg.netbeans.org/cnd-main/rev/73d8c5d6ee8b
Integrated into 'main-silver', will be available in build *201402110001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/73d8c5d6ee8b User: Alexander Simon <alexvsimon@netbeans.org> Log: fixing Bug 241359 - Improper Brace Matching - brace matcing part