chouzz / vscode-better-align

Better vertical alignment with/without selection in any language.
https://marketplace.visualstudio.com/items?itemName=Chouzz.vscode-better-align&ssr=false#overview
Apache License 2.0
39 stars 4 forks source link

[New feature] customizable chained function call alignment. #106

Open walter-perfectpay opened 1 year ago

walter-perfectpay commented 1 year ago

[New feature] customizable chained function call alignment.

I didn't find any form of configuration for this case.

$person = new ClassPerson();

//PSR-12
$personOne = $person
    ->setName('My Person')
    ->setDocument('123456789')
    ->getPerson();

//PSR-12 + custom ( tabs or spaces )
$personTwo = $person->setName('My Person')
                    ->setDocument('123456789')
                    ->getPerson();