pint --config kiwilan/steward/pint.json

You can use Laravel Pint extension with VSCode to auto format PHP files.

And into your settings.json file.

{
  "[php]": {
    "editor.defaultFormatter": "open-southeners.laravel-pint",
    "editor.formatOnSave": true
  },
  "laravel-pint.enable": true,
  "laravel-pint.preset": "laravel",
  "laravel-pint.enableDebugLogs": true
}

Into your project, create .vscode/settings.json.

{
  "laravel-pint.configPath": "vendor/kiwilan/steward-laravel/pint.json"
}