1.在eclipse启动的时候,它老是会搜索让其运行的jre,每每就是这个搜索过程让eclipse启动变慢了。(没设置时,等2-3s出现进度条,设置后直接出现进度条)编程
只要在eclipse.ini中加入-vm的参数就能够了windows
2.设置字体大小
Window-Preferences->General->Appearance->Colors and Fonts->Basic->Text Fonteclipse
3.windows–>perferences–>general–>Content Types,将须要修改的类型修改为UTF-8jsp
4.JSP、XML等文件类型默认打开方式的修改
windows–>perferences–>General–>Editors->file associations选择*.xml,选择myeclipse xml editor点default,*.jsp则选jsp editor点default等字体
5.tab代码缩进4个空格
Window->Preferences->General->Editors->Text Editors:Displayed tab width = 4,选重insert spaces for tabs优化
6.关闭拼写检查设置ui
7.取消全部启动时要激活的插件(在用时激活也同样)和其它的相关的在启动时执行的操做。编码
8.编码格式修改spa
windows–>perferences–>general–>Workspace,将工做空间中的文本文件的编码格式改成UTF-8插件
9.关闭自动更新
10.关闭SaveAction。在每次保存时都会执行的操做,这个会严重的拖慢保存,特别是文件大时。这个其实只要本身养成良好的编程习惯,就彻底不须要这个了。
11.优化代码提示。
12.注解配置
设置注释模板的入口: Window->Preference->Java->Code Style->Code Template
文件(Files)注释标签
/**@Description:
* @Title: ${file_name}
* @Package: ${package_name}
* @Author: ${user}
* @Date: ${date} ${time}
*/
类型(Types)注释标签(类的注释):
/**@Description:
* @ClassName: ${type_name}
* @Author: ${user}
* @Date: ${date} ${time}
* ${tags}
*/
字段(Fields)注释标签:
/**
* @Fields ${field} : ${todo}
*/
构造器(Constructor & Methods)标签:
/**@Description:
* @Title: ${file_name}
* @Date: ${date} ${time}
* @Author: ${user}
* @Throws
* ${tags}
*/
方法(Methods)标签:
/**@Description:
* @Title: ${enclosing_method}
* @Date: ${date} ${time}
* @Author: ${user}
* @Throws
* ${tags}
*/
覆盖方法(Overriding Methods)标签
/* Description:
* Title: ${enclosing_method}
* ${tags}
* ${see_to_overridden}
*/
表明方法(Delegate Methods)标签:
/**
* ${tags}
* ${see_to_target}
*/
13.Eclipse自动文本验证
Window->Preferences->Validation
保留manual(手动)部分,build下只留"classpath dependencyValidator"
手动验证:选中文件右击->Validation
修改黑色主题后,须要修改Debug执行当前行的颜色
window --preferences--general--editors--text editors--annotations--debug current instruction pointer