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 doing auto formatting (Alt+Shift+F) on JavaScript code with an "else if" statement, the space between the two keywords is removed. if(i == 1){ // Do something }else if(i == 2){ // Do something else } After auto formatting it looks like this and it's an error: if(i == 1){ // Do something }elseif(i == 2){ // Do something else }
Reproducible in 7.3 and trunk if one sets to JavaScript|Spaces -> Before Left Braces|Else to be unchecked Product Version: NetBeans IDE 7.3 (Build 201302132200) Java: 1.7.0_21; Java HotSpot(TM) Client VM 23.21-b01 Runtime: Java(TM) SE Runtime Environment 1.7.0_21-b11 System: Linux version 3.2.0-40-generic-pae running on i386; UTF-8; en_US (nb)
*** This bug has been marked as a duplicate of bug 227781 ***