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 262396 - Reformatting code does not work correctly
Summary: Reformatting code does not work correctly
Status: NEW
Alias: None
Product: php
Classification: Unclassified
Component: Formatting & Indentation (show other bugs)
Version: 8.1
Hardware: PC Windows 7
: P4 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-10 16:10 UTC by tetrode
Modified: 2016-06-11 07:24 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (1016.46 KB, text/plain)
2016-06-10 16:11 UTC, tetrode
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tetrode 2016-06-10 16:10:30 UTC
Product Version = NetBeans IDE 8.1 (Build 201510222201)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.7.0_67
Runtime = Java HotSpot(TM) 64-Bit Server VM 24.65-b04

Reproducibility: Happens every time

STEPS:
  * Type in the following code
  
if ($a == $b) {
    $c = $d;
} $e = $f;

  * Type Alt-Shift-F to reformat

ACTUAL:
  $e = $f stays on the line after the }

EXPECTED:
  code is formatted as follows
if ($a == $b) {
    $c = $d;
} 
$e = $f;
Comment 1 tetrode 2016-06-10 16:11:14 UTC
Created attachment 160032 [details]
IDE log