Myeclipse基本设置

来源:互联网 发布:淘宝怎么获得天猫积分 编辑:程序博客网 时间:2024/06/03 07:17

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 mzl* Created on ${date} ${time}* Copyright ${year} Ultrapower,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设置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"

6 配置字符编码:

window-->preference-->General-->Content Types-->text然后在Default encoding中输入UTF-8-->update;依次把Java Properties File和一下的字符编码都update为UTF-8; 

7 配置Ecips的内存:

$Eclipse$/eclipse.ini文件添加 -vmargs-Xmx512M-XX:MaxPermSize=192M

8 配置工作空间提示:

window-->preference-->General-->Startup and Shutdown -->Prompt for workspace on Startup  

11 配置MyEclipse:

Help-->Sofware Updates-->Manage Configuration -->Eclipse Platform上面右键-->ADD-->Extension Location;找到"D:JavaStudyMyEclipse";重新启动Eclipse;在标题栏里就多了一个MyEclipse的选项;

12 修改快捷键

操作如下:Ctrl+Shit+L 两次,首先在view选型卡中选中一项,切换到Modify选项卡下,之后点Delete按钮,删除后再添加,把Key Sequence的Name中的内容改成希望的内容,之后点Add按钮

13 取消自动validation

windows-->perferences-->myeclipse-->validation  除开Manual下面的复选框全部选中之外,其他全部不选 手工验证方法:            在要验证的文件上,单击鼠标右键-->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 “Warning: No grammar constraints (DTD or XML schema) detected for the document.”

Windows->Preferences->MyEclpse->File and Editors->XML->XML Source->Use inferred grammar in abszence of DTD/SchemaWindows->Preferences->XML->XML Files->Validate files->Indicate when no grammar is specified 选择ignore 来关闭这个警告

19 取消启动时update index

window->Preferences->Myeclipse->Maven4Myeclipse->Maven->禁用Download repository index updates on startup

20 java编译级别

window->preferences->Java->Compier 选择 Compiler compliance level: 1.5
原创粉丝点击