junstyle / vscode-php-cs-fixer

PHP CS Fixer extension for VS Code
https://marketplace.visualstudio.com/items?itemName=junstyle.php-cs-fixer
MIT License
357 stars 45 forks source link

Help #141

Closed BobyBoebsel closed 3 years ago

BobyBoebsel commented 3 years ago

Plugin does format this way:

if (statement){ foo; }

but i want this way:

if (statement) { foo; }

How can i change?

angelidito commented 3 years ago

I would help you, but I have no idea. Are you sure you want it that way? I mean, I have seen that with no formatter on if/else statements. Only functions and classes, though.

junstyle commented 3 years ago

please read the rules: https://github.com/FriendsOfPHP/PHP-CS-Fixer/blob/2.18/doc/rules/index.rst