项目中常用MyEclipse设置
2013-11-16 21:53
477 查看
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/Schema
Windows->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
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/Schema
Windows->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
相关文章推荐
- MyEclipse 常用优化设置
- MyEclipse中常用帮助设置
- Extjs 项目中常用的小技巧,也许你用得着(5)--设置 Ext.data.Store 传参的请求方式
- myeclipse和eclipse设置项目不需要项目名也能访问
- MyEclipse编译后,classes文件夹下为空2. 3.删除现在的项目,提前设置好编译文件输出路径,重新导入源文件,设置eclipse为保存时编译,然后在保存的时候就可以自动编译了
- 对于myeclipse设置Tomcat上运行项目的增删
- myeclipse项目编码方式彻底设置
- MyEclipse中常用设置:
- MyEclipse 10 常用设置
- MyEclipse常用设置方法
- MyEclipse常用设置
- Myeclipse中设置maven以及maven项目的导入
- myeclipse的java web项目设置编码方式以及utf-8还是乱码问题
- MyEclipse常用设置
- MyEclipse常用设置图解之一
- MyEclipse常用设置
- MyEclipse2014导入web项目常见问题设置
- MyEclipse中常用设置:
- MyEclipse代码提示快捷键和常用设置
- MyEclipse2014 常用设置优化