driade / phpfmt8

PHP formatter for Sublime Text 4, with PHP 8 support.
BSD 3-Clause "New" or "Revised" License
47 stars 2 forks source link

Both AlignDoubleArrow Vertically & AlignDoubleSlashComments Vertically ? #62

Open ahu opened 1 year ago

ahu commented 1 year ago

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',
];
driade commented 1 year ago

Thanks @ahu . I'll try to check it