Last active
June 30, 2020 15:43
-
-
Save armorasha/02252b85bf3fcd5a4681f57dc46d17e1 to your computer and use it in GitHub Desktop.
PHP-CS-Fixer settings you need to add to your VS Code's existing settings.json file (2020)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Add these settings to your VS Code's existing settings.json file (2020) | |
"php.suggest.basic": false, | |
"[php]": { | |
"editor.formatOnSave": true, | |
"editor.defaultFormatter": "junstyle.php-cs-fixer", | |
}, | |
"php-cs-fixer.executablePath": "C:\\Users\\your_user_name_here\\AppData\\Roaming\\Composer\\vendor\\bin\\php-cs-fixer.bat", | |
"php-cs-fixer.executablePathWindows": "C:\\Users\\your_user_name_here\\AppData\\Roaming\\Composer\\vendor\\bin\\php-cs-fixer.bat", | |
"php-cs-fixer.onsave": true, | |
"php-cs-fixer.rules": "@PSR2", | |
"php-cs-fixer.config": "C:\\Users\\your_user_name_here\\AppData\\Roaming\\Composer\\vendor\\bin\\config.php_cs", | |
"php-cs-fixer.allowRisky": false, //it is safe not to allow risky linting | |
"php-cs-fixer.pathMode": "override", | |
"php-cs-fixer.exclude": [], | |
"php-cs-fixer.autoFixByBracket": true, | |
"php-cs-fixer.autoFixBySemicolon": false, | |
"php-cs-fixer.formatHtml": true, | |
"php-cs-fixer.documentFormattingProvider": true, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment