Skip to content
| Marketplace
Sign in
Visual Studio Code>Linters>Simple PHP CS FixerNew to Visual Studio Code? Get it now.
Simple PHP CS Fixer

Simple PHP CS Fixer

calebporzio

|
29,330 installs
| (3) | Free
A simple way to fire php-cs-fixer with custom config and optionally on save.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Simple PHP CS Fixer README

A simple extension for using php-cs-fixer in VS Code.

If no .php_cs.dist file (or other configuration) is found, it will use the default configuration for the Laravel project: https://gist.github.com/laravel-shift/cab527923ed2a109dda047b97d53c200

Demo Gif


The Command:

simple-php-cs-fixer.fix


Config:

Look for a custom project specific config file?

"simple-php-cs-fixer.useConfig": true

The path to that config file. (relative to the project root)

"simple-php-cs-fixer.config": ".php_cs.dist"

Run the fixer on save?

"simple-php-cs-fixer.save": false

Whether php-cs-fixer should be using a cache

"simple-php-cs-fixer.usingCache": false

A comma separated list of rules to be used by php-cs-fixer

"simple-php-cs-fixer.rules": "@PSR1,@PSR2,trailing_comma_in_multiline_array"


- Enjoy!

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft