vscode php跳转
最近在写一个php项目,最后选定使用vscode编辑器,然后研究了一下断点调试、格式代码、点击跳转
以下是配置步骤,记录一下
1.代码格式化及跳转
1.前提条件:安装7.0以上版本php, 2.4apache
2.安装php-cs-fixer php-formatter phpIntelliSense 等插件
3.文件->首选项->配置:
"php.validate.executablePath": "D:/soft_install/amp/php7.02/php.exe",
"php-cs-fixer.executablePath": "D:/soft_install/amp/php7.02/extras/php-cs-fixer.phar",
"phpformatter.phpPath": "D:/soft_install/amp/php7.02/php.exe",
"phpformatter.arguments":["--rules=@Symfony"],
"phpformatter.pharPath": "D:/soft_install/amp/php7.02/extras/php-cs-fixer.phar",
"php.executablePath": "D:/soft_install/amp/php7.02/php.exe",
4.下载 php-cs-fixer.phar 放到extras里面