开发者

How do I use a different PHP formatter in Eclipse?

This is (I think) related to eclipse helios for PHP - code formatter not available but uses a different version and different install instructions -- if it is in fact the same plugin. It seems to be updated and refactored into a plugin rather than a dropin. Anyway

I downloaded a more complete PHP code formatter from here:

http://de.sourceforge.jp/projects/pdt-tools/downloads/50253/pdt_tools.formatter_1.0.0.zip/

It comes in .zip form and the instructions say to add it via the usual method:

Help -> Add New Software -> Archive...

This worked, and I see two formatters in Preferences -> PHP -> Code Style -> Formatter, but I can't figure out ho开发者_如何转开发w to actually use the new formatter, or any indication that Eclipse is using the new one. I've looked for a way to remove the old one, or switch something to the new one, or rebind Ctrl+Shift+F to use a specific formatter, but haven't been able to get it... In the project settings it doesn't even show up, only workspace settings. :(

Anyone know how one would do this? Thanks.


I know this is an old question, but in case anyone else is wondering, the newer version (pdt_tools.formatter_1.1.0) works like a charm.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜