简体   繁体   English

需要帮助为Ubuntu找到完美的PHP IDE

[英]Need assistance finding the perfect PHP IDE for Ubuntu

I'm trying to build an application in PHP using my Ubuntu laptop. 我正在尝试使用我的Ubuntu笔记本电脑在PHP中构建应用程序。 I'm having a hard time, however, finding an IDE that fits my needs. 但是,我很难找到符合我需求的IDE。 My ideal IDE would have the following features: 我理想的IDE将具有以下功能:

  • Code folding 代码折叠
  • Easy code snippet creation that is assignable to a shortcut key 可以分配给快捷键的简单代码段创建
  • Code organization 代码组织
  • Unit Testing 单元测试
  • Debugger 调试器

Netbeans fits most of these requirements except that the ability to create snippets is complex. Netbeans符合大多数这些要求,但创建片段的能力很复杂。 One must create a module file and then screw around with some XML and do the hokey poky to get a super simple snippet installed. 一个人必须创建一个模块文件,然后使用一些XML并执行操作以获得一个超级简单的代码片段。 I tried creating a macro in NetBeans, but it screws up the javadoc and I have not figured out a way to tell it to just paste in what I type for the duration of the macro rather than using all of the human assistance features. 我尝试在NetBeans中创建一个宏,但它搞砸了javadoc并且我还没有找到一种方法来告诉它只是粘贴我在宏的持续时间键入的内容而不是使用所有人工辅助功能。 So what I get is a bunch of jacked up looking code with jacked up phpdoc. 所以我得到的是一堆顶起的代码,顶起的phpdoc。

gPHPEdit is more of what I'm looking for as far as snippet support, but it sorely lacks all of the other features that NetBeans does so well. 就代码片段支持而言,gPHPEdit更像是我正在寻找的东西,但它非常缺乏NetBeans所做的所有其他功能。

Any ideas on a great PHP IDE. 关于一个伟大的PHP IDE的任何想法。 Since this is a personal project, purchasing an IDE is not an option. 由于这是个人项目,因此购买IDE不是一种选择。

In NetBeans, you can make code templates. 在NetBeans中,您可以创建代码模板。 These are abbreviations with variable support, what you can complete with a selected key (tab, ctrl+enter etc). 这些是带有可变支持的缩写,您可以使用所选键完成的操作(tab,ctrl + enter等)。

You can find it under Tools -> Options -> Editor -> Code Templates . 您可以在Tools -> Options -> Editor -> Code Templates下找到它。

I use Aptana which is build on top of eclipse or can be used as an eclipse plugin. 我使用Aptana ,它构建在eclipse之上,或者可以用作eclipse插件。 It comes with some basic snippets and creating new snippets isn't that hard with eclipse. 它附带了一些基本的片段,并且创建新的片段对于eclipse并不那么难。

I would recommend to start with the 3.0 beta as it has some new features that are quite useful. 我建议从3.0 beta开始,因为它有一些非常有用的新功能。 Apatana has almost everything you need and as it uses eclipse, you will get almost everything that is missing (like SVN or GIT support). Apatana几乎拥有你需要的一切,因为它使用eclipse,你几乎可以得到所有缺失的东西(比如SVN或GIT支持)。

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

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