phpfmt8 icon indicating copy to clipboard operation
phpfmt8 copied to clipboard

Both AlignDoubleArrow Vertically & AlignDoubleSlashComments Vertically ?

Open ahu opened this issue 8 months ago • 1 comments

Now I find it formatted like below when enable 'AlignDoubleSlashComments':

$array = [
    'a' => 'blabla', // comments blabla
    'aa' => 'bla',   // comments something
];

Could it format like this? (below)

$array = [
    'a'  => 'blabla', // comments blabla
    'aa' => 'bla',    // comments something
];

Which I just want the double slash comments vertically aligning, AND also the double arrow. It did this when I looked in some of my old codes.

btw:

the double slash comments vertically aligning is also ugly like below:

$array = [
    'a' => 'blabla', // comments blabla
                     // 'aa' => 'bla',    // comments something
    'aaa' => 'bla',
];

the format I need:

$array = [
    'a' => 'blabla',   // comments blabla
     // 'aa' => 'bla', // comments something
    'aaa' => 'bla',
];

ahu avatar Oct 08 '23 08:10 ahu