1.安装配置PHP至系统环境变量PATH中
2.创建PHP编译系统
打开Sublime Text3 >> 菜单 Tools >> Build System >> New Build System
默认代码:
{ "shell_cmd": "make"}
修改为如下代码:
{ "cmd": ["php", "$file"], "file_regex": "php$", "selector": "source.php" }
保存为php.sublime-build(默认目录下即可)
3.重启勾选 惨淡Tools >> Build System 下勾选php
4.Ctrl+B即可编译PHP文件