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

Vedadian's PHP CS Fixer

Behrooz Vedadian

| (0) | Free
Format PHP documents with the PHP CS Fixer installed in your Composer project.
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

A Visual Studio Code extension that formats PHP documents with PHP CS Fixer.

Requirements

  • Visual Studio Code 1.145.0 or later
  • PHP CS Fixer installed in the Composer project you open, at vendor/bin/php-cs-fixer
  • A composer.json file in the workspace

The extension uses the project's PHP CS Fixer executable and configuration; it does not bundle PHP or PHP CS Fixer.

Usage

Open the Composer project in Visual Studio Code, then run Format Document for a PHP file (by default, Shift+Alt+F on Linux and Windows or Shift+Option+F on macOS). You can also configure this extension as your default PHP formatter in your VS Code settings.

Development

pnpm install
pnpm run compile

Open this repository in Visual Studio Code and press F5 to launch the extension in an Extension Development Host. The included launch configuration compiles the TypeScript before launch. Use pnpm run watch to compile continuously during development.

Acknowledgment

This project uses jsdiff for parsing the php-cs-fixer diff output. To enable packaging, their source is directly included in the repository.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft