将 Eclipse PDT 和 Aptanta 插件与 JQuery 结合在同一个项目中
我刚刚有机会更多地学习如何使用 PHP 进行 Web 开发,并尝试学习一些 JQuery。与我尝试过的其他 IDE 相比,我真的很喜欢使用 Eclipse + PDT,而且 PDT 库似乎在其他 PHP 工具中脱颖而出,IMO。但不幸的是它似乎不支持 JavaScript 和 JQuery。
经过数小时的研究并安装 Aptana Studio 以及 Aptana Eclipse 插件后,我能够通过将 sdocml 文件包含到项目中来使 JQuery 支持(代码辅助)工作,如所述 此处。
但似乎只有当我基于 Aptanta 的模板创建一个项目时它才起作用,但在这种情况下,原始的 PDT 支持不起作用。如果我基于 PDT 模板创建项目,则 JQuery 支持也会发生同样的情况,在这种情况下,JQuery 代码辅助不起作用。
有没有办法将两种类型的项目合二为一,并使 JQuery 和 PDT 支持同时工作?
我也尝试过使用 Aptana Studio 3,它现在支持 PHP,但我不像 Eclipse 的 PDT 那样喜欢它。
NetBeans 还支持 JQuery 和 PHP,但在我看来,还是不如 PDT+Aptana。
Visual Studio 不适合我,因为我主要使用 Linux 来完成这些项目,而且我也不是 VS(或 .NET)的忠实粉丝,所以我什至没有尝试过这些。
I just got an opportunity to do a little more learning about web developing with PHP and trying to learn some JQuery too. I really enjoy using Eclipse + PDT over other IDEs that I have tried and the PDT library seems to really stand out among other PHP tools, IMO. But unfortunately it doesn't seem to have support for JavaScript and JQuery.
After doing hours of research and installing Aptana Studio as well as Aptana Eclipse plugin I was able to make the JQuery support (code assist) work by including the sdocml file into the project as dscribed here.
But it only seems to work if I create a project based on Aptanta's template, but in that case the original PDT support doesn't work. And the same thing happens vice verse with the JQuery support if I create a project based on PDT template, in which case the JQuery code assist doesn't work.
Is there a way to combine the two types of projects into one and make both JQuery and PDT support work at the same time?
I also tried just to use the Aptana Studio 3, which now has PHP support, but I didn't like it as much as the Eclipse's PDT.
NetBeans also have support for both JQuery and PHP, but again, not quite as good as PDT+Aptana, IMO.
Visual Studio wouldn't work for me as I am using mostly Linux for these projects, and I am not a big fan of the VS (or .NET) anyways, so I haven't even tried those.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我曾经(在 Eclipse Ganymede 周围)这样做过:安装 PDT 和 Aptana 插件,然后使用 javascript 编辑器处理 .js 文件。它工作完美,也许这仍然是一个选择。 IIRC 可以只安装 Aptana 的一部分,所以我只安装了 js 编辑器。
I once (that time around Eclipse Ganymede) did it this way: Install the PDT and the Aptana Plugin and then used the javascript editor for .js files. It worked flawlessly, maybe that's still an option. IIRC it was possible to only install a portion of Aptana, so I only installed the js editor.