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.
Create template "abb" to insert code "int x = 1;". Scope it by checking "IF" box. In code type "abb" immediately after "if(true)" and press Tab> Expansion takes place but with two unwanted Returns in it leading to error.
The code templates does not check syntax of the replaced code, the code fragment cannot be used in this place - the formatter then fails due to syntax error in the code