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

Fix on save stopped working #215

Open nsrosenqvist opened 3 months ago

nsrosenqvist commented 3 months ago

Not sure when, but a couple of months ago the "fix on save" option stopped working for me. Sometimes it works temporarily, but mostly not at all. Can anyone else reproduce this too?

walangkaji commented 3 months ago

I think you need to see the error in Developer Tools Console, VsCode -> Help -> Toogle Developer Tools and then see what happen in console tab

Renji-FR commented 2 months ago

Hi, I had the same issue without any error in the dev console or the php-cs-fixer console.

My issue was a wrong configuration, this was the missing configuration for me:

"[php]": {
        "editor.formatOnSave": true,
        "editor.defaultFormatter": "junstyle.php-cs-fixer",
},

I hope it will help you.