通常,我用PHP编写代码时不使用制表符,因此我想安装atom-beauty。因此,我前一段时间安装了此插件,但无法运行。我收到此输出
Could not find 'php'. The program may not be installed.
See php installation instructions at https://github.com/Glavin001/atom-beautify#beautifiers or go to http://php.net/manual/en/install.php
You can configure Atom Beautify with the absolute path to 'php' by setting 'Executable - PHP - Path' in the Atom Beautify package settings.
Your program is properly installed if running 'which php' in your Terminal returns an absolute path to the executable.
但是我已经安装了PHP,也许我应该为它们设置一个路径?我找不到可以粘贴路径到php的任何地方。或者,也许我应该安装一些php软件包?我已经安装了最新版本的php和php-fpm,并且使用Arch Linux。
您是否在github页面上看到此条目:
PHP
重要:此选项只能在Atom Beautify的设置面板中进行配置。
类型:对象
说明:
PHP可执行文件的选项。
如何配置
您可以通过导航到编辑>首选项(Linux),Atom>首选项(OS X)或文件>首选项(Windows)打开“设置视图”。进入软件包并搜索“ Atom Beautify”软件包。找到选项“ PHP”,并将其更改为所需的配置。
禁用php beautify选项。除非在我的情况下php修饰不是紧急的,否则不必修饰语言。