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

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。

原文地址:https://www.cnblogs.com/jiqing9006/p/5045916.html