用于 PHP 开发的 Eclipse PDT 与 NetBeans

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1903004/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-25 04:14:41  来源:igfitidea点击:

Eclipse PDT vs. NetBeans for PHP development

phpidenetbeanscomparisoneclipse-pdt

提问by Derek

How does Eclipse PDT compare to NetBeans for PHP development?

在 PHP 开发方面,Eclipse PDT 与 NetBeans 相比如何?

I just bought a new computer with Windows 7 and I'm starting to set up a development environment for PHP. Has anyone used both IDEs lately and could make a quick comparison? If you know what major frameworks are supported, that would be great too.

我刚买了一台装有 Windows 7 的新电脑,我开始为 PHP 设置开发环境。有没有人最近使用过这两个 IDE 并且可以进行快速比较?如果您知道支持哪些主要框架,那就太好了。

回答by Vilx-

Yes, I switched from Eclipse to Netbeans for PHP development quite recently. And I have to admit - I like NetBeans better. It seems to me more lightweight and stable. It certainly loads faster. And code completion seems to be much better than in Eclipse - it doesn't fail so often, and you can insert hint-comments wherever you wish to specify the types of your variables. Also NetBeans IDE is much simpler than Eclipse. It's probably not as powerful (and it could definately use a few more configuration options), but on the other hand, Eclipse was downright intimidating with its complex system.

是的,我最近从 Eclipse 切换到 Netbeans 进行 PHP 开发。我不得不承认 - 我更喜欢 NetBeans。在我看来,它更轻便、更稳定。它当然加载更快。代码完成似乎比在 Eclipse 中好得多——它不会经常失败,而且您可以在任何希望指定变量类型的地方插入提示注释。NetBeans IDE 也比 Eclipse 简单得多。它可能没有那么强大(它肯定可以使用更多的配置选项),但另一方面,Eclipse 以其复杂的系统而令人生畏。

Put it this way - if you come from a Windows background (like me), go for NetBeans. If you're a Linux/Unix fan, you'll feel right at home with Eclipse.

这样说吧 - 如果您有 Windows 背景(像我一样),请选择 NetBeans。如果您是 Linux/Unix 的粉丝,那么使用 Eclipse 会感到宾至如归。

回答by umpirsky

I switched to NetBeans after version 7.0 has been released. It's faster, more lightweight and code completion is better. Its easier to configure and looks like everithing just works, in Eclipse you need to deal with complex configuration, and I wanted to focus on coding. But they are both good.

我在 7.0 版发布后切换到 NetBeans。它更快,更轻量级,代码完成更好。它更易于配置并且看起来一切正常,在 Eclipse 中您需要处理复杂的配置,而我想专注于编码。但他们两个都很好。

I compared them, you can read more on http://dev.umpirsky.com/eclipse-vs-netbeans-for-php-development/

我比较了它们,您可以在http://dev.umpirsky.com/eclipse-vs-netbeans-for-php-development/上阅读更多内容

回答by Alex R

Eclipse PHP (PDT) does not come with a working debugger out-of-the-box. You have to download and install at least 2 or 3 other fussy open-source components to make that work. I've never tried NetBeans, but, if you need debugging (stepping through code) and you don't have several days to work through the environment setup hell of Eclipse, that might be the way to go.

Eclipse PHP (PDT) 没有提供开箱即用的调试器。您必须下载并安装至少 2 或 3 个其他繁琐的开源组件才能使其工作。我从未尝试过 NetBeans,但是,如果您需要调试(单步执行代码)并且您没有几天时间完成 Eclipse 的环境设置地狱,那可能是要走的路。

回答by Fernando André

Advantage of eclipse is that I can code in PHP and perl in the same project.

eclipse 的优点是我可以在同一个项目中用 PHP 和 perl 编写代码。

回答by Sajad Bahmani

I use Eclipse first and work friendly with this .Next I use Netbeans for Java and I use it completely in java and uninstall Eclipse . Next time that I need work with PHP I use Netbeans for this goal and I understood Netbeans code completion better than Eclipse also code highlighting but build , compile,debug and run are better in Eclipse and I think Netbeans increase feature and functionality in future .

我首先使用 Eclipse 并与此友好地工作。接下来我使用 Netbeans for Java,我完全在 Java 中使用它并卸载 Eclipse。下次我需要使用 PHP 时,我使用 Netbeans 来实现这个目标,我理解 Netbeans 代码完成比 Eclipse 更好,而且代码突出显示,但在 Eclipse 中构建、编译、调试和运行更好,我认为 Netbeans 将来会增加特性和功能。

回答by Jorge Merino - jmerinoh

I downloaded NetBeans IDE 6.9.1, just to compare against eclipse PDT 2.2.0 to edit PHP projects on CVS.

我下载了 NetBeans IDE 6.9.1,只是为了与 eclipse PDT 2.2.0 进行比较以在 CVS 上编辑 PHP 项目。

Eclipse can appear complex and difficult to setup, however, by downloading eclipse PDT all-in-one it is easiest to unzip it and start using it.

Eclipse 可能看起来很复杂且难以设置,但是,通过下载 Eclipse PDT 多合一最容易解压并开始使用它。

I'm surprised about how fast and light weighted NetBeans is, you can realize how fast it is immediately.

我对 NetBeans 的速度和轻量化感到惊讶,您可以立即意识到它有多快。

I still like eclipse on the way how it does and shows stuff, but NetBeans has a crispy design.

我仍然喜欢 eclipse 的工作方式和显示方式,但 NetBeans 的设计很简洁。

They both are really good options regardless of Linux or Windows OS.

无论是 Linux 还是 Windows 操作系统,它们都是非常好的选择。

回答by Robert J. Sherman

Frankly - I don't know which is better or worse; I've worked with Eclipse ... it was required by the College I attend for the JAVA course -it worked great for that and I quickly understood how to manipulate the project to store "everything" related to the class, including PDF files and Word Documents.

坦率地说——我不知道哪个更好或更坏;我使用过 Eclipse ......我参加 JAVA 课程的大学要求它 - 它对此非常有用,我很快就了解如何操作该项目以存储与课程相关的“一切”,包括 PDF 文件和Word 文档。

When it comes to PHP -well, I can't seem to get XDebug to function with Eclipse. Not even sure I know why at this point. I installed NetBeans and had no problems interfacing with XDebug for PHP ... so I'm torn. There are aspects that I like about both of these applications -and things I don't like, mostly cosmetic things. Like where they write their project data -and about renaming or moving project data ... I've had a bugger of a time with Eclipse -and not as much trouble with 'Beans.

说到 PHP - 好吧,我似乎无法让 XDebug 与 Eclipse 一起运行。甚至不确定我现在知道为什么。我安装了 NetBeans 并且在与 PHP 的 XDebug 交互时没有问题......所以我很伤心。这两个应用程序都有我喜欢的方面 - 以及我不喜欢的东西,主要是装饰性的东西。就像他们写项目数据的地方一样——以及关于重命名或移动项目数据......我有一段时间在 Eclipse 上遇到了麻烦——而不是像 'Beans 那样麻烦。