您的位置:首页 > 编程语言 > PHP开发

vscode php跳转

2018-02-23 11:03 211 查看
最近在写一个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里面
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: