Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>php-code-snifferNew to Visual Studio Code? Get it now.
php-code-sniffer

php-code-sniffer

Erick Tubaro

|
4,958 installs
| (0) | Free
PHP CodeSniffer for Visual Studio Code
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

vscode-PHP-CodeSniffer

Current Version Install Count Open Issues

Integrates phpcs into Visual Studio Code.

Forked from phpcs by ETubaro because it is unmaintained.

Changes

v1.06

  • Updated to be compatibale with phpcs >= v3.0

Setup Development Version

  • install the Visual Studio Code npm extension
  • clone this repository and checkout develop branch
  • open the cloned repository folder using Visual Studio Code
  • run VS Code task npm install

Run/Debug Development Version

To run the development version of the phpcs extension:

  • open the cloned repository folder using Visual Studio Code
  • select sidebar option Debug
  • select option Client + Server from the Debug drop-down menu
  • press Start Debugging button or hit F5

This will launch a new VS Code window named Extension Development Host, automatically using the development version of the phpcs extension.

If you don't have an open php file on your Extension Development Host the server debug session will timeout and you will need to relaunch it from the debug panel.

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