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 269191 - [Editor Formating] Multiline Alignment for Method Parameters, Method Call Arguments... not work
Summary: [Editor Formating] Multiline Alignment for Method Parameters, Method Call Arg...
Status: NEW
Alias: None
Product: ide
Classification: Unclassified
Component: Code (show other bugs)
Version: 8.1
Hardware: PC Windows 10 x64
: P3 normal (vote)
Assignee: issues@ide
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-01 04:36 UTC by vanquang9387
Modified: 2017-02-24 02:05 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description vanquang9387 2016-12-01 04:36:57 UTC
Steps to Reproduce
- Goto Editor->Formating menu
- Select Language: PHP, Catefory: Alignment
- Check Method Parameters, Method Call Arguments checkboxes
- Declare function
public function myFunction($myVeryLongParameter1,
$myVeryLongParameter2,
$myVeryLongParameter3,
$myVeryLongParameter4)
{

}
- Call function
$this->myFunction($myVeryLongParameter1,
$myVeryLongParameter2,
$myVeryLongParameter3,
$myVeryLongParameter4);

- Do code autoformat

Actual Results
Code being formatted like:
public function myFunction($myVeryLongParameter1, $myVeryLongParameter2, $myVeryLongParameter3, $myVeryLongParameter4)
{

}

$this->myFunction($myVeryLongParameter1, $myVeryLongParameter2, $myVeryLongParameter3, $myVeryLongParameter4);

Expected Results
Code being formatted like:
public function myFunction($myVeryLongParameter1,
                           $myVeryLongParameter2,
                           $myVeryLongParameter3,
                           $myVeryLongParameter4)
{

}

$this->myFunction($myVeryLongParameter1,
                  $myVeryLongParameter2,
                  $myVeryLongParameter3,
                  $myVeryLongParameter4);
Comment 1 vanquang9387 2016-12-02 08:57:56 UTC
Edited Expected Results
Code being formatted like:
public function myFunction (
    $myVeryLongParameter1,
    $myVeryLongParameter2,
    $myVeryLongParameter3,
    $myVeryLongParameter4
)
{

}

$this->myFunction(
    $myVeryLongParameter1,
    $myVeryLongParameter2,
    $myVeryLongParameter3,
    $myVeryLongParameter4
);
Comment 2 vanquang9387 2017-02-24 02:05:30 UTC
Anyone looks at this?