1.修改编码
Window->Preferences->
General ->Workspace ->Text file encoding 修改为UTF-8
Window->Preferences->MyEclipse->Files and Editors -> JSP => Encoding 修改为 UTF-8
2.配置自动提示
Window->Preferences->
Java->Editor->Content Assist=> Auto activation triggers for Java:(输入.abcdefghijklmnopqrstuvwxyz
)
3.自动键入括号和输入分号自动回尾.
Window->Preferences->
Java->Editor->Typing => Semicolons 和Braces 打上勾.
4.修改字体大小
Window->Preferences-> General ->Appearance -> Colors and Fonts=>Basisc->Text Font
5.其他
控制台保留更多的日志输出:
Window->Preferences->Run/Debug->Console=>Console buffer size(characters)改为999999
显示堆内存占用大小:
Window->Preferences->General=>Show heap status
6. Window --> Preferences --> Myeclipse Enterprise Workbench --> Maven4Myeclipse --> Maven --> "Download repository index updates on startup" 去掉前面的勾。
Window --> Preferences --> Myeclipse Enterprise Workbench --> Maven4Myeclipse --> MyEclipse Dashboard --> "Show MyEclipse Dashboard on startup" 去掉前面的勾。
7.关闭验证
windows-->perferences-->myeclipse-->validation 全部取消选中.
8.
windows-->perferences->Startup and Shutdown=>去掉不用的加载项
注意一定要去掉Automatic Update Scheduler
我的配置从第一个一直到MyEclipse Memory Monitor中间几乎全部取消了,只保留了一个MyEclipse EASIE Tomcat7
9.
windows-->perferences->Java->Compiler->Errors/Warning=>
Deprecated and restricted API->Forbidden reference(access rules):=>Warning
也可以把所有的Waring改为Ignore.
10.显示行号:
随意打开一个类文件,在左侧边框处点右键菜单中有Show Line Numbers一项,打上勾即可.
11.配置tomcat:
Window->Preferences->
MyEclipse ->Servers -> Tomcat -> Tomcat 7.x=> 选定Enable并配置Tomcat home directory
12.调整文件默认打开方式:
windows-->perferences->General->Editors->File Associations
调整:jsp/htm/html
文件的默认打开工具,使用visual的编辑器打开jsp很慢,改为非可视的切换比较快.
MyEclipse Visual JSP Designer => MyEclipse JSP Editor
*.class 编辑器(自动反编译) => JadClipse Class File Viewer
(需安装jadclipse
插件)
*.properties编辑器=> PropertiesEditor(需安装propedit插件)
13.常用插件
(1)findbugs -- 可以查找出静态代码的错误,提高代码质量非常实用
(2)jadclipse -- 代码反编译工具,有时我们调试需要跟踪到jar内部,这款反编译工具可以帮助我们直接反编译jar为源码,并且可以断点跟踪调试.
Path to decompiler:配置为jad.exe的绝对路径,例如D:\a_tools\Java\jdk6\bin\jad.exe
如果不是在eclipse中使用,jd-gui.exe是一款很好用的jar反编译工具.
(3)maven插件 MyEclipse自己集成了Maven4MyEclipse插件用于支持maven,如果觉得不好用,可以安装一个m2eclipse
(4)svn插件(subversive)
(5)propedit --
属性文件(*.properties)编辑自动转utf-8
14.插件安装不上的解决办法
eclipse有时会出现放到dropins下面不能自动安装插件的问题,可以改为修改%ECLIPSE_HOME%\configuration\org.eclipse.equinox.simpleconfigurator\bundles.info文件,详见:
http://blog.youkuaiyun.com/lk_blog/article/details/7658511
15.
Snippets
MyEclipse自带的代码片段Snippets,可以自己定义一些自己的代码段,能提高效率.
代码段中可以定义一些变量,在模板中可以${name}方式使用.
16.代码中的快捷输入
sysout --> System.out.println();
for -->
for(String s:list){
}
main -->
public
static
void
main(String[] args) {
}
17.带条件的断点调试有时很有用(断点上点右键).
18.调整MyEclipse启动时的vm配置大小:
%Eclipse_HOME%\myeclipse.ini
19.jsp或js前面有红叉,排除方式:
在文件或文件夹上点右键->MyEclipse->Exclude from Validation
20.