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

PHP CS Fixer

makao

|
26,274 installs
| (6) | Free
PHP CS Fixer extension for VS Code
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

PHP CS Fixer for Visual Studio Code

This extension simply provides PHP CS Fixer command.

Instalation

Open command palette F1 and select Extensions: Install Extension, then search for PHP CS Fixer.

Note: PHP CS Fixer must be installed.

Installation guide

Configuration

{
    "phpcsfixer.executablePath": "php-cs-fixer",
    "phpcsfixer.onsave": false,
    "phpcsfixer.level": "psr2",
    "phpcsfixer.fixers": ""
}

Usage

F1 -> PHP CS Fixer: fix this file

Additionally you can configure this extension to execute on save.

"phpcsfixer.onsave": true

For more information please visit: http://cs.sensiolabs.org

License

MIT

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