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 268192 - Grouping Alignment of Multiline array assigments with spaces instead of tabs.
Summary: Grouping Alignment of Multiline array assigments with spaces instead of tabs.
Status: NEW
Alias: None
Product: php
Classification: Unclassified
Component: Formatting & Indentation (show other bugs)
Version: 8.1
Hardware: PC Windows 10 x64
: P3 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-25 12:24 UTC by arnisraido
Modified: 2016-09-25 12:28 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 arnisraido 2016-09-25 12:24:34 UTC
In Netbeans Editor > Formatting -> PHP - > Alignment, there is great feature:

Group Multiline Alignment
[] "Array Initializer"

If its "checked", then arrays in PHP from this:

~~~
$data = array(
	'product_id' => $product_id,
	'name' => $name,	
);
~~~

will become "group aligned", with TAB characters in the middle:

~~~
$data = array(
	'product_id'	=> $product_id,
	'name'		=> $name,	
);
~~~

But this is a problem - TAB character size can be different when using different settings or editors. This is why usually alignment around " => " should be done with empty spaces, not TABs.

At lease - there should be a setting for this?