我们可以在 Sublime Text 3 中创建 PHP 的 build system,这样就可以利用 ctrl+b 命令快速运行。

tip要把php添加为环境变量,然后再进行如下操作

添加 PHP 的 build system,如图所示, Tools->Build System-> New Build System :

修改为:

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

保存在默认的目录下即可,注意修改文件名为 php.sublime-build 。

sublime运行php

注:最后记得选择Tools-Bulid System-php

相关文章:

  • 2021-12-18
  • 2022-12-23
  • 2022-12-23
  • 2021-06-27
  • 2022-01-04
  • 2021-07-22
  • 2022-12-23
猜你喜欢
  • 2021-11-18
  • 2021-08-08
  • 2021-05-06
  • 2021-12-30
  • 2022-12-23
  • 2021-12-03
  • 2021-05-16
相关资源
相似解决方案