stechstudio / Laravel-PHP-CS-Fixer

Artisan Command for FriendsOfPHP/PHP-CS_Fixer
MIT License
147 stars 28 forks source link

Laravel-PHP-CS-Fixer with php-cs-fixer in vs-code #34

Closed Daespinosag closed 1 year ago

Daespinosag commented 2 years ago
TheFrankman commented 2 years ago

+1

mxsxs2 commented 1 year ago

I know it is a bit late. Anyhow: I use this in VSCode:

"emeraldwalk.runonsave": {
    "commands": [
      {
        "match": "\\.php$",
        "isAsync": false,
        "cmd": "php src/artisan fixer:fix -- ${file}"
      }
    ]
  },

With: https://github.com/emeraldwalk/vscode-runonsave

bubba-h57 commented 1 year ago

Run on save as @mxsxs2 notes is the way to do it.