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 don't know if it's the "if" statement, or the function call in it, but when I type: if (bla.equals("bla") and then push the cursor after the closing right paren (there's a second one that closes off the "if"-condition) via a keyboard key (on the Mac, cmd-right), press "return", the cursor doesn't move to the new line, but moves INTO the if condition, right after the right ("bla") parenthesis. Incredibly annoying. Please think about this "feature". The second thing is inside a for-i loop. When I type "fori" and have it expand to a loop, put the cursor after the { at the end of the line and press enter, it won't let me do ANYTHING. Instead the cursor is "beamed" somewhere else. Also quite annoying. (Besides, I always delete that useless first line in the "fori" loop anyway; if I wanted a straight iteration loop, I'd use the "for : " loop.) Be careful with moving the cursor around. It's like X window moving the mouse cursor around. Old window managers used to do it, and it was annoying. Sorry for ranting. The new editor in 6.0M5 is *great*, but it has its annoying sides that I'd like to go away in the future (I'm hoping they aren't intended features).
Code templates?
What's your question? Yes, it has to do with templates, I guess (I'm only a user, not developer). But certainly the return key should still work normally, as soon as the template is expanded (i.e. after you typed "fori " etc.), not make the cursor do funky jumps to some fixed place where it is rather useless for the user.
Sorry, the comment was not meant as a question for you, but as a comment for dbalek to know why I am reassigning the issue to him.