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 - Incorrect autoindent braces in JS files
Summary: Incorrect autoindent braces in JS files
Status: NEW
Alias: None
Product: ide
Classification: Unclassified
Component: Code (show other bugs)
Version: 8.2
Hardware: PC Windows 10 x64
: P4 normal (vote)
Assignee: issues@ide
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-27 18:13 UTC by artavazd
Modified: 2016-11-27 18:13 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (281.73 KB, text/plain)
2016-11-27 18:13 UTC, artavazd
Details

Note You need to log in before you can comment on or make changes to this bug.
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