且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

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

更新时间:2022-04-23 18:37:29

1.将php路径放入环境变量中

sublime text3 自动编译php 适合用于简单的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。

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


本文转自TBHacker博客园博客,原文链接:http://www.cnblogs.com/jiqing9006/p/5045916.html,如需转载请自行联系原作者