2016-07-26 100 views
0

我试图安装有用的插件PHP CS定影剂Netbeans 8.2。 我习惯了在Netbeans 8上运行它,它运行良好,我希望我不能回到那个版本。 请注意,CodeSniffer已成功设置。Netbeans PHP CS定影剂问题

当我尝试安装插件0.53它说我需要额外的插件,我真的不知道它们是什么。

继错误

The plugin org.netbeans.modules.projectuiapi.base is requested in version 1.83.1.9. The following plugin is affected:       PHP CS Fixer 
Some plugins require plugin org.openide.filesystems.nb to be installed. 
The plugin org.openide.filesystems.nb is requested in version 9.6.1. The following plugin is affected:       PHP CS Fixer 
Some plugins require plugin org.openide.util.ui to be installed. 
The plugin org.openide.util.ui is requested in version 9.3.1. The following plugin is affected:       PHP CS Fixer Some plugins not installed to avoid potential installation problems. 

有什么建议? 谢谢

+0

至于我可以看到,该插件现在可以直接包含在Netbeans的。 检查工具>选项> PHP>代码分析>编码标准定影剂。 但我不知道如何使用它,上下文菜单不在这里了...... –

+0

您是否找到解决方案,因为我仍遇到同样的问题。 – dev0

回答

1

NetBeans 8.2本身包含插件。

您只需要导航到“选项”窗口并设置PHP CS Fixer .phar文件位于相应选项卡中的路径。当然,如果你没有.phar文件,你必须先下载它,点击official PHP CS Fixer website上的“立即安装”。

由于一个画面讲超过1000个字,下面是截图:

enter image description here

最后但并非最不重要的:为了使用PHP CS定影液在NetBeans 8.2,你必须使用晦涩的菜单:源>检查... 在过去的上下文菜单中有它的好和快,太容易和实用;) 花了我2个小时来弄清楚这个“细节”了。

+0

请问我如何才能让NetBeans做更多的工作呢? – Simon

1

对于任何人谁发现此页面,仍然有困难,请接受在现代版本的php-cs-fixer帐户,您不能使用级别选项。

相反,在自定义选项,设置是这样的:

[email protected]