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

PHP Formatter PHP-CS-Fixer

Marvin Heilemann

|
11,322 installs
| (1) | Free
Run just PHP-CS-Fixer.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

PHP-CS-Fixer

PHP-CS-Fixer

Install from here: https://marketplace.visualstudio.com/items?itemName=muuvmuuv.vscode-just-php-cs-fixer

Run just the PHP-CS-Fixer with zero dependencies, just ~4 kb!

How?

Install this extension through the marketplace and install PHP-CS-Fixer with composer locally. If you have PHP-CS-Fixer installed globally, please set the path to the executable in this extension's settings. This extension wont download PHP-CS-Fixer for you, because it is meant to be small and simple.

Why?

Other extension are way to complex or include HTML formatting, which does not work well with PHP-CS-Fixer.

If you want HTML formatting, download Intelephense and run this extension together with emeraldwalk.RunOnSave.

Development

Extension is bundled with esbuild, see package scripts for cli utilities. VS Code debugger has two options, one for a workspace project and one without.

Releases are made manually; increase the version and publish the package locally. Do not forget to commit all changes before making a release.


The PHP-CS-Fixer logo is © 2010+ Sensio Labs

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