eclipse helios for PHP - code formatter not available

假如想象 提交于 2020-01-01 12:07:11

问题


I'm looking at my Eclipse helios (3.6) preferences page, and I can see I can set code formatting settings for the Java code, but not for PHP.

How can I set the spacing for function arguments in Eclipse for PHP. It seems the changes I make for Java don't apply to the PHP code.


回答1:


I know that when I got Eclipse, I downloaded the version that was specifically for PHP: http://www.eclipse.org/downloads/packages/eclipse-php-developers/heliossr1

It's likely that the version you downloaded is the base version and does not have the additional PHP features included.

EDIT: Check out http://en.sourceforge.jp/projects/pdt-tools/releases/?package_id=8764 for an Eclipse dropin you can use(the site is in Japanese, but I was able to find the download link easily). This may be what you're looking for. To install, just place it in the dropins folder of your Eclipse install and restart Eclipse.




回答2:


It took me a while to figure out that was my problem a couple years ago.

Eclipse maintains a section just for PHP Eclipse that includes everything you need for coding PHP in Eclipse.



来源:https://stackoverflow.com/questions/5007525/eclipse-helios-for-php-code-formatter-not-available

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!