展会信息港展会大全

myeclipse和eclipse优化设置
来源:互联网   发布日期:2016-01-14 14:46:22   浏览:1447次  

导读: 1.提高速度,关闭自动更新 (1) window → preferences → General→ Startup and Shutdown→ 在列表中找到 "Automatic...

1.提高速度,关闭自动更新

(1) window → preferences → General→ Startup and Shutdown→ 在列表中找到 "Automatic

Updates Scheduler " 项去掉前面的勾。

(2) Window→ Preferences → Myeclipse → Maven4Myeclipse → Maven→

"Download repository index updates on startup" 去掉前面的勾。

2.代码提示修改

window→Preferences→java→Editor→Content Assist

选择“Content Assist”,然后看到右边,右边的“Auto-Activation”下面的“Auto Activation triggers for java”这个选项。其实就是指触发代码提示的就是“.”这个符号。

“Auto Activation triggers for java”这个选项,在“.”后加abc等字母,

然后“apply”,点击“OK”。

3.代码颜色修改

window→Preferences→java→Editor→syntax coloring

4.取消myeclipse自带的jdk加入自己的jdk

window→Preferences→java→Installed jRes

点击右边的add 加入java jdk的安装目录

5.添加自己的jar文件

window→Preferences→java→bulid path→use libraries

6.取消拼音检查

windows→perferences→general→editors→Text Editors→spelling

7.设置jsp的默认编码utf-8

windows→perferences→Myeclipse →files and editors→jsp

修改为utf-8

8.取消myeclipse自动生成代码的注释

window→Preferences→java→code style→code tempplates

选择右边的 method body 点击edit 去掉代码的注释

9. eclipse(MyEclipse)关闭鼠标移动提示代码功能:

eclipse(MyEclipse)-->window-->Java-->Editor-->Hovers-->Combined Hover(去掉这个选项就可以了)

10. Eclipse MyEclipse 中JS中文乱码解决方法

可依次选择"window">>"preferences">>"general">>"content types"

在右边的窗口中打开列表,选中"JavaScript",在下面的"default encoding"右边的输入框中输入"GBK"再点"update"按钮,再打开JS文件就可以

11 设置文件默认打开方式

eclipse(MyEclipse)-->window-preferences-general-Editors-File Assocaiations

12.修改代码格式化换行的长度

1.Java代码

打开Eclipse的Window菜单,然后Preferences->Java->Code Style->Formatter->Edit/Show(根据不同版本可用的按钮会不一样) ->Line Wrapping->Maximum line width:由默认的80改成自己想要设定的长度

2.Html代码

Window->Preferences->MyEclipse->Files and Editors->Html->Html Source->Line width->加个0以后保存。

3.xml代码

Window->Preferences->MyEclipse->Files and Editors->xml->xml Source->->Line width->999

131、window-preferences-MyEclipse Enterprise Workbench-Maven4MyEclipse-Maven,将Maven JDK改为电脑上安装的JDK,即不使用myeclipse提高的JDK

登记add按钮,选择你的电脑上的JDK即可(注意:不是JRE,我的值为:Java6.014)

2、window-preferences-MyEclipse Enterprise Workbench-Matisse4Myeclipse/Swing,将Design-time information(dt.jar) location 改用电脑安装的JDK的dt.jar

(即不使用myeclipse提供的dt.jar,我的值为:C:\Java6.014\lib\dt.jar)

经过以上的优化,myeclipse的启动时间可以减少2/3,Tomcat的启动速度可以减少1/2(视具体情况而定)

14取消自动验证,该成手动验证

windows-->perferences-->myeclipse-->validation

将Build下全部勾取消,保留Manual(手动) 如果你需要验证某个文件的时候,我们可以单独去验证它。方法是,在需要验证的文件上( 右键 -> MyEclipse -> Run Validation

赞助本站

人工智能实验室

相关热词: eclipse 编程 软件开发

相关内容
AiLab云推荐
推荐内容
展开

热门栏目HotCates

Copyright © 2010-2024 AiLab Team. 人工智能实验室 版权所有    关于我们 | 联系我们 | 广告服务 | 公司动态 | 免责声明 | 隐私条款 | 工作机会 | 展会港