现在PHP程序不少,修改PHP的IDE与编辑器也多, 如PhpStorm,Sublime Text,NetBeans,Zend Studio,Notepad++,Eclipse with PDT,Dreamweaver,Aptana,Vim,phpDesigner,zendstudio,aptana. php
固然使用visual studio也可修改PHP代码。 html
这里,我将使用eclipse修改PHP代码 git
let's start github
下载eclipse http://www.eclipse.org/downloads/packages/eclipse-php-developers/lunasr1 sql
自动换行能够参考 Eclipse Word Wrap
https://github.com/ahtik/eclipse-wordwrap/wiki
Use http://ahtik.com/eclipse-update/ update site to install the latest version. Go to http://ahtik.com/blog/projects/eclipse-word-wrap/ for more info
http://subclipse.tigris.org/update_1.10.x vim
建议不要选择Contact all update sites during install to find required software windows
这个网站提供了大量适合PHP开发的插件: http://twig.dubture.com/installation/ app
除了经过marketplace安装外还能够以下 eclipse
The plugin can be installed via the Update Manager using the following updatesite: http://p2-dev.pdt-extensions.org
http://vrapper.sourceforge.net/update-site/stable phpstorm
编码
设置精典主题
加快自动提示速度
字体
volt模板语法高亮显示(方案一:设置成php或者html)
若是安装了twig模板支持(推荐方案二:设置成Twig Template)
显示空白
空格代替tab
格式化标准为PSR-2
php调试
PHP Include Path
除了指定外部源码目录外还能够指定项目
windows->editor
比较 Local history
替换 Local history
兼容phpstorm,netbeans,eclipse的函数内变量注释
/* @var $var type */
具体略。
adiOS