PHP IDE eclipse-php-luna 使用规范
来源:互联网 发布:php表达式去除a标签 编辑:程序博客网 时间:2024/06/06 20:39
PHP IDE eclipse-php-luna
声明
因为后续会继续完善内容,仅在segmentfault发布,谢绝转载。
前言
根据http://www.sitepoint.com/best-php-ide-2014-survey-results/调查
大部分个人开发者会选择 PhpStorm,Sublime Text,NetBeans,Zend Studio,Notepad++,Eclipse with PDT,Dreamweaver,Aptana,Vim,phpDesigner
免费的IDE基本上是NetBeans和Eclipse + PDT之争。只是NetBeans功能上不错,但界面太丑了,速度上也比eclipse慢。
团队协作时,初期还是需要有一个指导性质的工具规范,养成一至的代码风格。考虑windows用户较多,以下截图取自windows平台eclipse,mac平台基本一样。
在统一编码习惯和风格后,并不限制编辑器。
下载eclipsehttp://www.eclipse.org/downloads/packages/eclipse-php-developers/lunasr1
目录
- 安装svn插件
- 安装vi支持插件
- 配置编码和换行
- 设置精典主题
- 设置自动提示延时
- 设置字体
- 设置volt模板类型
- 空格代替TAB,显示空白符
- 格式化标准为PSR-2
- 设置xdebug支持跟踪调试
自动换行可以参考 Eclipse Word Wraphttps://github.com/ahtik/eclipse-wordwrap/wikiUse 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
安装svn
http://subclipse.tigris.org/update_1.10.x
建议不要选择Contact all update sites during install to find required software
安装 Twig | Eclipse | Plugin
这个网站提供了大量适合PHP开发的插件:http://twig.dubture.com/installation/
除了通过marketplace安装外还可以如下
The plugin can be installed via the Update Manager using the following updatesite:http://p2-dev.pdt-extensions.org
vim-vrapper
http://vrapper.sourceforge.net/update-site/stable
统一配置
编码
设置精典主题
加快自动提示速度
字体
volt模板语法高亮显示(方案一:设置成php或者html)
如果安装了twig模板支持(推荐方案二:设置成Twig Template)
显示空白
空格代替tab
格式化标准为PSR-2
php调试
eclipse基本使用指导
workspace
PHP项目
PHP Include Path
除了指定外部源码目录外还可以指定项目
搜索,快速打开项目文件
- Ctrl+Shift+R
- Ctrl+h
快捷键
- 显示快捷键:Ctrl+Shift+L
- 删除行:Ctrl+D
- 开关注释:Ctrl+/
- 块注释:Ctrl+Shift+/ Ctrl+Shift+\
- 跳转到行号:Ctrl+L
- 格式化文件:Ctrl+Shift+F
- 格式化选中部分:Ctrl+I
- 补全提示:Alt+/
分割窗口
windows->editor
本地历史记录
比较 Local history
替换 Local history
文档注释
- 编写规范
- 文档工具生成文档
兼容phpstorm,netbeans,eclipse的函数内变量注释
/* @var $var type */
svn插件使用
略
phpunit插件使用
略
- PHP IDE eclipse-php-luna 使用规范
- PHP IDE eclipse-php-luna 使用规范
- eclipse PHP Language IDE试用
- Eclipse Luna 使用BuildFatJar异常
- PHP IDE,Visual Studio还是Eclipse?
- PHP IDE,Visual Studio还是Eclipse?
- PHP IDE,Visual Studio还是Eclipse?
- PHP IDE,Visual Studio还是Eclipse?
- PHP IDE,Visual Studio还是Eclipse?
- PHP IDE,Visual Studio还是Eclipse?
- PHP IDE,Visual Studio还是Eclipse?
- PHP IDE,Visual Studio还是Eclipse?
- PHP IDE,Visual Studio还是Eclipse?
- PHP IDE,Visual Studio还是Eclipse?
- PHP IDE,Visual Studio还是Eclipse?
- PHP IDE,Visual Studio还是Eclipse?
- PHP IDE,Visual Studio还是Eclipse?
- PHP IDE,Visual Studio还是Eclipse?
- osgExample - osgAnimationMakepath
- openfire安装The Openfire database schema does not appear to be installed. Follow the installation guid
- osgExample - osgAnimationMorph
- Path in developing
- Android 用MediaCodec实现视频硬解码
- PHP IDE eclipse-php-luna 使用规范
- python mysql 插入特殊字符串处理
- Python的中文编码问题
- Web前端性能优化实践
- Qt+openGL学习记录(1)`Qt中openGL的三个重要事件处理函数的调用规则`
- bzoj1299: [LLH邀请赛]巧克力棒 博弈
- 我玩adb时常用的命令
- Qt+openGL学习记录(4)`如何实现物体在三维坐标系中的旋转`
- Qt+openGL学习记录(5)`加入定时器开启自动旋转,绘制三维简单对象`