Skip to content

Instantly share code, notes, and snippets.

@sumitpore
Last active October 10, 2019 12:50
Show Gist options
  • Save sumitpore/e9c4a21c4b1e74662524e750c52ca1d6 to your computer and use it in GitHub Desktop.
Save sumitpore/e9c4a21c4b1e74662524e750c52ca1d6 to your computer and use it in GitHub Desktop.
VSCode settings.json for PHP Projects. I don't give specific phpcs standards in this config instead I place `.phpcs.xml.dist` in the project directory.
{
"breadcrumbs.enabled": true,
"phpcs.enable": true,
"phpcs.showSources": true,
"phpcs.executablePath": "/usr/local/bin/phpcs",
"phpcs.autoConfigSearch": true,
"phpcs.ignorePatterns": [
"*/vendor/*",
"*/vendors/*",
],
"phpcbf.enable": true,
"phpcbf.documentFormattingProvider": true,
"phpcbf.debug": true,
"phpcbf.executablePath": "/usr/local/bin/phpcbf",
"phpcbf.onsave": false,
"php.suggest.basic": true,
"php.validate.executablePath": "/usr/bin/php",
"php.validate.run": "onSave",
"editor.minimap.enabled": false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment