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.

Bug 269139

Summary: Incorrect autoindent braces in JS files
Product: ide Reporter: artavazd
Component: CodeAssignee: issues@ide <issues>
Status: NEW ---    
Severity: normal    
Priority: P4    
Version: 8.2   
Hardware: PC   
OS: Windows 10 x64   
Issue Type: DEFECT Exception Reporter:
Attachments: IDE log

Description artavazd 2016-11-27 18:13:30 UTC
Product Version = NetBeans IDE 8.2 (Build 201609300101)
Operating System = Windows 8 version 6.2 running on amd64
Java; VM; Vendor = 1.8.0_60-ea
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.60-b06

Reproducibility: Happens every time

STEPS:
  * Enter IF statement without braces, i.e. condition and its statement..
  * Add opening curly brace after condition, just before the statement.
  * Press Enter.

ACTUAL:
  The statement breaks in incorrect place. I think, before the first comma.

EXPECTED:
  Just move the statement to the next line and indent it.
Comment 1 artavazd 2016-11-27 18:13:36 UTC
Created attachment 163043 [details]
IDE log