我试图为ST3使用php-fmt插件,但已安装了它,但是当我使用按键时,它却无能为力。我想我正确设置了所有内容,但php文件没有任何格式。我可以在命令行上使用PHP。我在OSX上,使用MAMP php 5.5.10
另外,如果我使用命令“分析”,我也会收到消息
Autocomplete and autoimport need building a database of terms.
Please, fill in below with the proper location for this database.
Keep in mind that the best location is always the root of the project, therefore limiting the size and ensuring speed.
如果您知道为什么它不起作用,请帮助或建议另一种格式化PHP代码的方法,谢谢!
在菜单上,转到“首选项”>“软件包设置”>“ phpfmt”>“设置-用户”
编辑将因上一个操作而打开的文件。
根据您的php二进制位置指定“ php_bin”,
它应包含以下内容:
{
"enable_auto_align": false,
"indent_with_space": true,
"passes":
[
],
"php_bin": "/Applications/MAMP/bin/php/php5.5.10/bin/php",
"psr1": true,
"psr2": true,
"version": 2
}
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句