简体   繁体   English

在Linux上安装哪个Eclipse版本用于PHP开发

[英]Which Eclipse version to install on Linux for PHP development

I have Slackware 12.1 and wish to try out Eclipse for PHP/HTML/JavaScript development. 我有Slackware 12.1并希望尝试Eclipse进行PHP / HTML / JavaScript开发。 However, it seems I'm facing myriad of possible options and I'd hate to miss the best thing and give up on Eclipse (I'm currently using Geany , but I'm missing some stuff like , for example, auto-complete for JavaScript) 然而,似乎我面临着无数可能的选择,我不想错过最好的东西而放弃Eclipse(我现在正在使用Geany ,但我缺少一些东西,例如,自动完成对于JavaScript)

I'm currently looking into just installing All-in-one PDT package version 1.0.3 from here: 我目前正在考虑从这里安装一体化PDT软件包1.0.3版本:

http://www.eclipse.org/pdt/downloads/ http://www.eclipse.org/pdt/downloads/

However, that seems to be Eclipse 3.3. 但是,这似乎是Eclipse 3.3。 There's also Slackware package for 3.4 here: 这里还有3.4的Slackware软件包:

http://repository.slacky.eu/slackware-12.1/development/eclipse/3.4/ http://repository.slacky.eu/slackware-12.1/development/eclipse/3.4/

But it says it a "Classic" version. 但它说它是“经典”版本。 I'm not sure how hard would be to add PHP, HTML, JavaScript support for it. 我不确定为它添加PHP,HTML,JavaScript支持会有多难。

Note: I don't plan to run PHP through Eclipse's integrated web server or anything like that. 注意:我不打算通过Eclipse的集成Web服务器或类似的东西运行PHP。 I just want a powerful editor. 我只想要一个强大的编辑器。

PS Also, recommendations for something better than Eclipse that is for Linux and free are also welcome. PS此外,也欢迎提供针对Linux和免费的Eclipse更好的建议。 I already used Kate, SciTE, Geany, Emacs, Vi and Bluefish, so those are not interesting. 我已经使用过Kate,SciTE,Geany,Emacs,Vi和Bluefish,所以这些都不是很有趣。

Important: whatever you recommend, please explain reasons why. 重要提示:无论您推荐什么,请解释原因。 Don't rush to be the fastest gun in the west, as I'll downvote such answers that only say "use this" 不要急于成为西部最快的枪,因为我只会说“使用这个”这样的答案

I second Aptana wholeheartedly. 我全心全意第二次Aptana。 Since it is based very closely off of Eclipse, if you ever decide to do coding that Aptana will not cover, you are still used to the general interface of Eclipse. 由于它非常基于Eclipse,如果您决定进行Aptana无法编写的编码,您仍然习惯于Eclipse的通用接口。

I don't want to say it is cut down, because it is not. 我不想说它被削减,因为它不是。 It just has what you need for the languages and technologies you will be using it for. 它只是拥有您将使用它的语言和技术所需的内容。 You can still add other plugins to it as well for SVN, CVS, etc. The interface is a bit less crowded as well. 您仍然可以为SVN,CVS等添加其他插件。界面也不那么拥挤。

I don't do a whole lot of javascript coding, but man, that is where is stands out from the crowd. 我不做很多javascript编码,但男人,这是从人群中脱颖而出的地方。 It does a fantastic job with Javascript. 它使用Javascript做得很棒。

Also, you don't have to use Aptana's built in Jetty server to run PHP; 此外,您不必使用Aptana的内置Jetty服务器来运行PHP; you can just tell it where you local Apache server is. 您可以告诉它本地Apache服务器的位置。

I would recommend to use Eclipse 3.3 with PHP Development Tools. 我建议将Eclipse 3.3与PHP开发工具一起使用。 The All-in-one package should work fine. 一体化套餐应该可以正常使用。 The great thing about using Eclipse as a PHP IDE is that you have great integration for Zend Debugger/XDebug and you can use common Eclipse Extensions like Mylyn or Subclipse also for PHP. 将Eclipse用作PHP IDE的好处在于,您可以很好地集成Zend Debugger / XDebug,并且您可以使用常见的Eclipse Extensions,如MylynSubclipse也可以用于PHP。

Eclipse 3.4 isn't useful for PHP Development at the moment because the final version of PDT 2.0 got delayed . Eclipse 3.4目前对PHP开发没有用,因为PDT 2.0的最终版本被延迟了

You could also take a look at Aptana or the current Netbeans 6.5 Milestone which both support PHP. 您还可以查看Aptana或当前支持PHP的Netbeans 6.5里程碑 Until PDT 2.0 they both provide better JavaScript Support than the current Eclipse 3.3 based PDT. 在PDT 2.0之前,它们都提供比当前基于Eclipse 3.3的PDT更好的JavaScript支持。 Aptana is also based upon Eclipse. Aptana也基于Eclipse。

I'm still using Eclipse 3.3.2 and PDT 1.0.3, and I'm pretty happy with it. 我还在使用Eclipse 3.3.2和PDT 1.0.3,我很高兴。 I tried upgrading to Eclipse 3.4, using a few recent builds of PDT 2.0, but it was buggy. 我尝试使用PDT 2.0的一些最新版本升级到Eclipse 3.4,但它是错误的。 It would hang for a long time in certain situations (like when I was copying text in a PHP editor). 它会在某些情况下挂起很长时间(比如我在PHP编辑器中复制文本时)。 And it would keep re-parsing all my code every time I re-launched Eclipse, which took forever. 每次重新启动Eclipse时,它都会继续重新解析我的所有代码,这需要永远。 These issues will probably get fixed eventually, but I'd hold on unless you really want Eclipse 3.4. 这些问题最终可能会得到解决,但除非你真的想要Eclipse 3.4,否则我会坚持下去。

If you want auto-complete for JavaScript, in that case you should to use some plug-in for Eclipse such as Aptana Studio, but Aptana is more than auto-compete tool for javascript, it has included a lot of unnecessary things that you don't need for regular development. 如果你想要自动完成JavaScript,在这种情况下你应该使用Eclipse的一些插件,如Aptana Studio,但Aptana不仅仅是javascript的自动竞争工具,它包含了很多不必要的东西,你不要不需要定期开发。 I have the same problem to find the right solution for JavaScript in Eclipse, Aptana was ok, but I hate the additional features that Aptana includes, I didn't find any good tool which could be added to Eclipse, for JavaScript :( For script languages such as JSP, Eclipse is like a song...nice,sweet and smooth...;) 我有同样的问题在Eclipse中找到适合JavaScript的解决方案,Aptana还可以,但我讨厌Aptana包含的其他功能,我没有找到任何可以添加到Eclipse的好工具,用于JavaScript :(对于脚本像JSP,Eclipse这样的语言就像一首歌...好看,甜美而流畅......;)

Aptana is a good choice, dedicated Eclipse clone for web development. Aptana是一个很好的选择,专门用于Web开发的Eclipse克隆。

I personally use Krusader's editor, which is crippled version of Kate (KWrite). 我个人使用Krusader的编辑器,这是Kate(KWrite)的残缺版本。 Fast, nice code highlight, and many useful shortcuts (like Ctrl + D to comment selection language wise). 快速,漂亮的代码突出显示,以及许多有用的快捷方式(如Ctrl + D来明智地评论选择语言)。

Javascript with PDT Eclipse and the plugin jseclipse makes all your problems go away! 使用PDT Eclipse和插件jseclipse的Javascript使你所有的问题都消失了! :) With jseclipse the regular "Goto function with F3 keyboard press" works. :)使用jseclipse定期“使用F3键盘按下Goto功能”工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM