使用composer方式时可以不填 " phpformatter.phpPath " : " C:/phpStudy/P
安置完成后,将文档进行格局化后,就会酿成如下的代码格局
安置插件后,也可以对格局化进行配置
//打印日志信息,用于调试
"phpformatter.logging": true,
//不使用composer方法
"phpformatter.composer": false,
//添加自界说参数,默认的参数level已经在新版本中移出所以会导致运行堕落
//RULES=[@PSR1,@PSR2,@Symfony]
//source:https://github.com/FriendsOfPHP/PHP-CS-Fixer#usage
"phpformatter.arguments": [
"[email protected]"
],
// Should point to php-cs-fixer.phar file, if you have installed this manually (without Composer). Should include .phar extension.
// php-cs-fixer.phar路径,使用composer方法时可以不填
"phpformatter.pharPath": "C:/phpStudy/PHPTutorial/php/php-7.2.1-nts/php-cs-fixer-v2.phar",
// If the pharPath is set, and you are not using Composer, and you haven‘t added PHP to your PATH, this should point to the php.exe file.
// php路径,使用composer方法时可以不填
"phpformatter.phpPath": "C:/phpStudy/PHPTutorial/php/php-7.2.1-nts/php.exe",
"php.validate.executablePath": "C:/phpStudy/PHPTutorial/php/php-7.2.1-nts/php.exe"
vs code的 php 格局化设置
,温馨提示: 本文由Jm博客推荐,转载请保留链接: https://www.jmwww.net/file/web/31593.html