I am trying to use "php-cs-fixer" plugin with visual studio code.
I read this topic : topic
I followed all the steps. When I try to format the code, I see a brief message in the bottom tool bar "php-cs-fixer finished". But the code is not formatted at all.
Here is my settings , perhaps you will see something ? Precision : I am on widows environment.
    {
  "editor.fontSize": 12,
  "eslint.alwaysShowStatus": true,
  "diffEditor.ignoreTrimWhitespace": false,
  "editor.wordWrapColumn": 120,
  "files.autoSave": "onWindowChange",
  "editor.mouseWheelZoom": true,
  "[php]": {
    "editor.formatOnSave": true,
    "editor.defaultFormatter": "junstyle.php-cs-fixer"
  },
  "php-cs-fixer.lastDownload": 1632503694554,
  "php-cs-fixer.exclude": [],
  "php-cs-fixer.onsave": true,
  "php-cs-fixer.rules": "@PSR2",
  "php-cs-fixer.allowRisky": false, //it is safe not to allow risky linting
  "php-cs-fixer.pathMode": "override",
  "php-cs-fixer.autoFixByBracket": true,
  "php-cs-fixer.autoFixBySemicolon": false,
  "php-cs-fixer.formatHtml": true,
  "php-cs-fixer.documentFormattingProvider": true,
  "terminal.integrated.fontSize": 10,
  "blade.format.enable": true,
  "[blade]": {
    "editor.defaultFormatter": "onecentlin.laravel-blade"
  },
  "editor.rulers": [80],
  "php-cs-fixer.executablePath": "C:\\Users\\Domi\\AppData\\Roaming\\Composer\\vendor\\bin\\php-cs-fixer.bat",
  "php.suggest.basic": false,
  "editor.formatOnSave": true,
  "workbench.colorTheme": "Solarized Light",
  "php-cs-fixer.config": "C:\\Users\\Domi\\AppData\\Roaming\\Composer\\vendor\\bin\\config.php_cs",
  "[jsonc]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  }
}
 
                        
Found the solution here : https://github.com/FriendsOfPHP/PHP-CS-Fixer/issues/5696
The config.php_cs was not correct. Here mine which works fine :
;