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.
Product Version = NetBeans IDE 6.9.1 (Build 201011082200) Operating System = Windows 7 version 6.1 running on x86 Java; VM; Vendor = 1.6.0_22 Runtime = Java HotSpot(TM) Client VM 17.1-b03 After updating today, the formatting of braces is broken in Java code. I like to have my brace start at the next line, but suddenly the opening brace appears at an extra indentation. For example: I type if(condition) [enter] the cursor is on the next line, indented (still ok). I type an opening brace { and hit enter, the brace remains indented (wrong). The closing brace appears at the correct indentation (i.e. the same level as the "if"). I consider this a P1 priority as it renders the IDE essentially useless and makes me seriously consider switching to something else if it isn't fixed very very soon.
I can verify this as well. It happens when I press enter and then type the brace: example1 (works ok): if(true){<PRESS ENTER> } example2 (works faulty): if(true)<PRESS ENTER> { } I have to say as well that this is VERY frustrating and is slowing my coding at about a 40% rate.
I found a workaround: On Windows 7, go to C:\Users\<username>\.netbeans\6.9 and delete all files and folders with the date/time of when the update happened. On other OS-es, I suppose a similar workaround is possible.
Already fixed. *** This bug has been marked as a duplicate of bug 192098 ***
we will fix oroginal bug report into patch 3