Netbeans PHP spaces in array declaration

A simple question, I have an array:

array(
  'aaa' => 1,
  'bbbbbbbb' => 2,
  'ccccc' => 3,
  'dd' => 4
);

and I want the format code:

array(
  'aaa'       => 1,
  'bbbbbbbb'  => 2,
  'ccccc'     => 3,
  'dd'        => 4
);

Is there a formatting method for this because I don't see anything like it?

PS. Sorry for my English.

+4
source share
2 answers

PHP-code in NetBeans 7.1 In the "Alignment" category, new properties for group multi-line alignment appear - the purpose and initializer of arrays.

enter image description here

- Assignment , . , , char '='. , . , - , , . , .

- Array Initializer.

. , .

+6

NETBEAN , alt + shift + F

+5

Source: https://habr.com/ru/post/1624781/


All Articles