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.
I noticed that Netbeans was no longer automatically inserting closing braces. For instance, when I type this: public void mymethod() { Normally, it would insert the closing brace, and when I would press return, it would indent for me automatically. Now, neither of these happens properly. I tried unchecking and the rechecking "Insert Closing Brackets Automatically", but that didn't fix it. However, it will properly auto-insert other things like closing parentheses and brackets.
Actually, I'm finding that this feature works correctly for some files and not for others. I cannot tell what is different about the different files.
Actually, there are some cases when it will auto-complete the braces. For instance, if I start typing a try/catch block, it'll auto-insert the braces for the try but not the catch.
I had a stray { in the last function in the file. The problem cleared up when I deleted the brace. I think that if there's a stray brace AFTER where I'm inserting code, that should not break brace auto-insertion.