kokororin / vscode-phpfmt

Integrates phpfmt into VS Code
https://marketplace.visualstudio.com/items?itemName=kokororin.vscode-phpfmt
BSD 3-Clause "New" or "Revised" License
130 stars 30 forks source link

How to space around arrows after formatting my code? #147

Closed Shams-Raju closed 4 months ago

Shams-Raju commented 4 months ago

image

driade commented 4 months ago

Hi. Could you please post an example on would you expect the code to be formatted? Thanks.

Shams-Raju commented 4 months ago

Hi. Could you please post an example on would you expect the code to be formatted? Thanks.

Space around arrow like this: image

driade commented 4 months ago

Si @Shams-Raju There's no current rule in phpfmt to achieve this, nor there's no recommendation in the PSR standards https://www.php-fig.org/psr/ that suggest this behaviour.

Therefore it's not expected that this package should have this rule. It'd be a custom rule, opt in, that we had to develop.

Shams-Raju commented 4 months ago

Si @Shams-Raju There's no current rule in phpfmt to achieve this, nor there's no recommendation in the PSR standards https://www.php-fig.org/psr/ that suggest this behaviour.

Therefore it's not expected that this package should have this rule. It'd be a custom rule, opt in, that we had to develop.

Thanks for the information. Is there any option to align the single arrow like this? image

driade commented 4 months ago

No. Regards.