Eclipse基本设置
1.设置java的JDK:window->preferences->Java->Installed JREs->Add
2.设置文件默认打开方式: window->preferences->General->Editors->File Assocations 选中相关文件,并在Associated editor中选中对应的文件,并设default
3.配置Templates个人信息: Windosw->Preference->java->Code Type->Code Templates->Code->New Java Files 点击edit
/**
* @author xxx
* Created on ${date} ${time}
* Copyright ${year} xxx,Inc. All rights revserved.
*
*/
${filecomment}
${package_declaration}
${typecomment}
${type_declaration}
4.导入格式化文件:window-->preference-->Java-->Code Style-->Formatter 的Import reportFormat.xml文件即可
5.配置Tomcat:window-->preference-->MyEclips-->application Servers-->Tomcat 6点击Enable设置Tomcat Home Directory
6.设置Tomcat内存 window-->preference-->MyEclips-->application Servers-->Tomcat 6-->JDK
-Xms256m -Xmx512m
-Duser.timezone=GMT+08
设置Tomcat安全启动 -Djava.security.manager
-Djava.security.policy="D:/develope/tomcat 6.0.18 for 7.0/conf/catalina.policy"
7.配置字符编码: window-->preference-->General-->Content Types-->text然后在Default encoding中输入UTF-8-->update;依次把Java Properties File和一下的字符编码都update为UTF-8;
8. 配置Ecips的内存: $Eclipse$/eclipse.ini文件添加
-vmargs
-Xmx512M
-XX:MaxPermSize=192M
9.配置工作空间提示: window-->preference-->General-->Startup and Shutdown -->Prompt for workspace on Startup
10.配置MyEclipse: Help-->Sofware Updates-->Manage Configuration -->Eclipse Platform上面右键-->ADD-->Extension Location;找到"D:JavaStudyMyEclipse";重新启动Eclipse;在标题栏里就多了一个MyEclipse的选项;
11.修改快捷键操作如下:Ctrl+Shit+L 两次,首先在view选型卡中选中一项,切换到Modify选项卡下,之后点Delete按钮,删除后再添加,把Key Sequence的Name中的内容改成希望的内容,之后点Add按钮
12.取消自动validation windows-->perferences-->myeclipse-->validation 除开Manual下面的复选框全部选中之外,其他全部不选
13.手工验证方法:在要验证的文件上,单击鼠标右键-->myeclipse-->run validation
14.补全关键字用alt+/在windows-parameter-workspace-key里自己定义,类别是:edit,名称:内容辅助默认是ctrl+space了.
15.关闭自动补全括号的功能 Window->preferences->Java->Editor->Typeing 在那个Enable these typing aids....这个group里面有很多checkbox
16.改变Java编辑器的字体 windows->perferences->general->appearance->Colors and Fonts java->java Editor text Fonts 点change
17.改变JSP和XML编辑器的字体 windows->perferences->general->appearance->Colors and Fonts>basic->text Fonts
18.取消启动时update index window->Preferences->Myeclipse->Maven4Myeclipse->Maven->禁用Download repository index updates on startup
19.java编译级别 window->preferences->Java->Compier 选择 Compiler compliance level: 1.5
20.设置字体大小和颜色:window--preferences--General--appearance--colors and fonts--java--"java editor text font"