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

sublime text3 自动编译php 适合用于简单的php文件执行

2015-12-14 17:32 555 查看
1.将php路径放入环境变量中



2.

点击 sublime_text的“工具”->"编译系统"->"编译新系统"

{ "cmd": ["make"] }


改为

{
"cmd": ["php", "$file"],
"file_regex": "php$",
"selector": "source.php"
}


或者

{
"cmd": ["php", "$file"],
"file_regex": "^(...*?):([0-9]*):?([0-9]*)",
"selector": "source.php"
}


另存为

php.sublime-build

3.执行快捷键为Ctrl+B。

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: