1. 运行Sublime Text,选择Tool——>Build System——>New Build System(如下左图),在新弹出的窗体中,把默认内容({ “shell_cmd”: “make”} 替换成
{
"cmd": ["D:\\BtSoft\\WebSoft\\php\\7.0\\php.exe", "$file"],
"file_regex": "php$",
"selector": "source.php"
}
(上面标红的地址,请自行更换为你电脑的php执行地址)
保存在默认的目录下即可,注意修改文件名为 php.sublime-build
。重启sublime text,就可以用Ctrl+B
来编译.php文件了;
PS:必须保存文件后,才能进行ctrl + B 进行编译。