MyEclipse开发习惯

1.颜色设置-调整为合适阅读的浅绿色
(1)Window-Preferences-General-Editors-Text Editors
a.Backgroudcolors-背景色-设置为RGB(204,232,207)
b.Current-linehighlight-当前行高亮颜色-RGB(204,232,167)
(2)Window-Preferences-General-Editors-Text Editors-Annotations
a.Occurrences-高亮辅助-RGB(145,208,151)
b.Write Occurrences-变量名高亮辅助-RGB(145,208,151)

2.取消自动validation
validation有一堆,什么xml、jsp、jsf、js等等,我们没有必要全部都去
自动校验一下,只要需要的时候才会手动校验一下!
取消方法
window-preferences-myeclipse-validation除开Manual下面的
复选框选中之外,其他全部不选
手动验证
在要验证的文件上,单击鼠标右键-myeclipse-run validation

3.取消Eclipse拼写检查
window-preferences-general-editors-Text Editors-spelling

4.取消MyEclipse的启动项
(1)WTP:一个跟MyEclipse差不多的东西,主要差别是WTP是免费的,
如果使用MyEclipse则可以取消
(2)Mylyn:组队任务管理工具,类似于CVS,以任务为单位管理项目进度,
没用到的可以取消
(3)Derby:一种保存成jar形式的数据库,没用到可以取消
(4)Myeclipse EASIE:MyEclipse支持的服务器,除了tomcat6.x,其余去掉

5.更改jsp默认打开的形式
window-preferences-general-editors-file associations

6.自动提示功能
window-preferences-Java-Editor-Content Assist在Auto-Activation
下的for Java后面输入.abcdefghijklmnopqrstuvwxyz-Apply-OK

7.Eclipse注释模板
window-preferences-Java-Code Style-Code Template
(1)Comments-Types 类注释
/**
* ━━━━━━神兽出没━━━━━━
*    ┏┓   ┏┓
*   ┏┛┻━━━┛┻┓
*   ┃       ┃
*   ┃   ━   ┃
*   ┃ ┳┛ ┗┳ ┃
*   ┃       ┃
*   ┃   ┻   ┃
*   ┃       ┃
*   ┗━┓   ┏━┛Code is far away from bug with the animal protecting
*     ┃   ┃    神兽保佑,代码无bug
*     ┃   ┃
*     ┃   ┗━━━┓
*     ┃       ┣┓
*     ┃       ┏┛
*     ┗┓┓┏━┳┓┏┛
*      ┃┫┫ ┃┫┫
*      ┗┻┛ ┗┻┛
*
* ━━━━━━感觉萌萌哒━━━━━━
* @author 名字
* @ClassName ${type_name}
* @Version 版本
* @ModifiedBy 修改人
* @Copyright 公司名称
* @date ${date} ${time}
* ${tags}
*/
(2)Comments-Methods 方法注释
/**
* @author 名字
* @date ${date} ${time}
* ${tags}
*/
(3)Comments-Overriding methods 重写注释
/**
* @author 名字
* @date ${date} ${time}
* ${tags}
*/
(4)Comments-Delegate methods
/**
* @author 名字
* @date ${date} ${time}
* ${tags}
*/


8.字体大小
window-preference-General-Appearance-Colors and Fonts
(1)Basic-Text Font
字体:Courier New
字形:常规
大小:四号(或14)


9.控制台字体
点击控制台右键-preferences-Run/Debug-Console
(1)Background color背景色-黑色
(2)Standard Out text color控制台输出-绿色

10.显示行号
window-preference-Editors-Text Editor-选中Show line numbers
或者在类中左边右键,选中Show line numbers


11.去掉Folding
右键行号位置-Folding-Enable Folding

12.myeclipse修改默认创建JSP编码
window-preferences-myeclipse enterprise workbench-file and editors-jsp
在这个页面里边就有了Encoding












發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章