Skip to content

Instantly share code, notes, and snippets.

@liamwye
Created September 15, 2021 10:45
Show Gist options
  • Save liamwye/8ca7d339932fbcc99310006d589905bf to your computer and use it in GitHub Desktop.
Save liamwye/8ca7d339932fbcc99310006d589905bf to your computer and use it in GitHub Desktop.
VSCode settings for PHP
{
"workbench.iconTheme": "material-icon-theme",
"editor.fontSize": 14,
"breadcrumbs.enabled": true,
"css.validate": true,
"diffEditor.ignoreTrimWhitespace": false,
"editor.tabSize": 2,
"editor.autoIndent": "full",
"editor.insertSpaces": true,
"editor.formatOnPaste": true,
"editor.formatOnSave": false,
"editor.renderWhitespace": "boundary",
"editor.wordWrapColumn": 80,
"editor.wordWrap": "off",
"editor.detectIndentation": true,
"editor.rulers": [
80
],
"files.associations": {
"*.inc": "php",
"*.module": "php",
"*.install": "php",
"*.theme": "php",
"*.profile": "php",
"*.tpl.php": "php",
"*.test": "php",
"*.php": "php",
"*.info": "ini"
},
"files.trimTrailingWhitespace": true,
"files.insertFinalNewline": true,
"html.format.enable": true,
"html.format.wrapLineLength": 80,
"emptyIndent.removeIndent": true,
"emptyIndent.highlightIndent": false,
"emptyIndent.highlightColor": "rgba(246,36,89,0.6)",
"phpcs.enable": true,
"phpcs.standard": "Drupal,DrupalPractice",
"phpcs.ignorePatterns": [
"web/modules/contrib/*",
"web/themes/custom/huk/node_modules"
],
/** Required for Intelliphense and Drupal 8+ **/
"intelephense.environment.documentRoot": "core/index.php",
"intelephense.format.braces": "k&r"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment