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.
When I type "if" and hit tab, the editor will insert the codetemplate bound to this keyword like this: if ( true ) { } When I then after the last curlybrace type in "else if" and then hit tab, I would expect the editor to look like this: if ( true ) { } else if ( true ) { } but it does not. It do not do any inserting of templates for the last "if". A temp. workaround is to add a code template bound to the abbreviation "elseif" like this: else if (${EXP instanceof="boolean" default="true"}) { ${selection}${cursor} } but then i need to write something in the editor that is not completely logical - "elseif" instead of "else if" to make it work.
reproducible
Should be fixed in the current dev build. http://hg.netbeans.org/jet-main/rev/700f40b529cd