1. 颜色设置:
(1) Window->Preferences->General->Editors->TextEditors->
a. Backgroudcolors 背景颜色设置为RGB(204,232,207)
b. Current linehighlight当前行高亮颜色 RGB (162,215,167)
(2) Window->Preferences->General->Editors->TextEditors->Annotations
a.Occurrences 高亮辅助(145,208,151)
b.Write Occurrences变量名高亮辅助(145,208,151)
(3) JAVA->Editor
a. Matchingbackets highlight括号匹配高亮颜色 (0,128,255)
b. Completionproposal background自动补全窗口的背景色(166,217,171)
2. 显示行号:Window->Preferences->General->Editors->Text Editors->Show linenumbers选中此项
3. 快捷键
(1) Window->Preferences->General->Keys
a. ContentAssist 自动补全 alt+/
4. 更改jsp默认打开的方式
windows–>perferences–>general–>editors->fileassociations
选中*.jsp->在Associated editors中将MyEclipse JSP Editor设置为默认
5. 取消eclipse的启动项
windows–>perferences–>general–>startup and shutdown只留
MyEclipse EASIE Tomcat6 : tomcat服务
MyEclisp JSP Debug Tooling以下
6. 取消Eclipse拼写检查
windows–>perferences–>general–>Editors->TextEditors->spelling
将Enable spellchecking复选框的勾选去掉
7. 取消自动validation
windows–>perferences–>MyEclipse–>Validation将build下第一个ClasspathDependency Validator留下,其它全部勾取消。
如果你需要验证某个文件的时候,我们可以单独去验证它。方法是:在需要验证的文件上右键–>MyEclipse–>RunValidation
8. 加大JVM的非堆内存 MyEclipse6.0\eclipse\eclipse.ini
512m
-vmargs
-Xms256m
-Xmx512m
-Duser.language=zh
-XX:PermSize=256M
-XX:MaxPermSize=512M
9. Eclipse注释模板:Window->Preference->Java->CodeStyle->Code Template
(1) Comments-Types类注释
/**
*@author你的名字
*@ClassName:${type_name}
*@Version 版本
*@ModifiedBy 修改人
*@Copyright公司名称
*@date${date}${time}
*@description 类描述
*/
/**
*@author你的名字
*@title:${enclosing_method}
*@date${date}${time}
*${tags}${return_type}
*/
(3) Comments-Constructors构造方法注释
/**
* @author沐风
* @date ${date} ${time}
* ${tags}
*/
中文版:
/**
* @描述:
* @作者:沐风
* @版本:1.0
* @版权所有:沐风
* @时间 ${date} ${time}
*/
/**
* @描述:
* @作者:沐风
* @时间:${date} ${time}
* @参数:${tags}
* @返回值:${return_type}
*/
10. 更改改jre的路径: Window->Preference->Java->InstallJREs
点击add,再点击Browse选择jre的路径,如:D:\ProgramFiles\Java\jre1.6.0_22
11. eclipse 配置JAVA API,在没有原代码页面,点击AttachSource->External File
选择路径:Java\jdk1.6.0_22\src.zip
12. 更改工作空间的字符集: Window->Preferences->General->workspace->Textfile encoding->other:UTF-8
13. ,代码自动提示:Window-> Preferences -> Java -> Editor -> Content Assist -> AutoActivation delay是自动弹出提示框的延时时间,修改成100毫秒;triggers这里默认是".",加上"abcdefghijklmnopqrstuvwxyz"或"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"