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.
Please try to set JavaScript->Braces formatting for "while/do" to "New Line indented". Paste following to JS file do { console.log(1); } while (true); format it and press Enter after the ";" on line with "while(true);", new line indentation should be 0, but it actually is do { console.log(1); } while (true); | where | is cursor position. Thank you Product Version: NetBeans IDE Dev (Build web-main-1841-on-20150127) Java: 1.8.0_25; Java HotSpot(TM) Client VM 25.25-b02 Runtime: Java(TM) SE Runtime Environment 1.8.0_25-b17 System: Linux version 3.13.0-35-generic running on i386; UTF-8; en_US (nb)
It seems to be common issue when braces placement is set to "New Line indented", the same happens e.g. after if if (expr) { } or switch switch (key) { case value: break; default: break; }