myeclipse和eclipse优化设置

 1 1.提高速度,关闭自动更新
 2 
 3 (1) window → preferences → General→ Startup and Shutdown→ 在列表中找到 "Automatic
 4 
 5 Updates Scheduler " 项去掉前面的勾。
 6 
 7 (2) Window→ Preferences → Myeclipse → Maven4Myeclipse → Maven→
 8 "Download repository index updates on startup" 去掉前面的勾。
 9 
10 
11 2.代码提示修改
12 
13   window→Preferences→java→Editor→Content Assist
14     选择“Content Assist”,然后看到右边,右边的“Auto-Activation”下面的“Auto Activation triggers for java”这个选项。其实就是指触发代码提示的就是“.”这个符号。
15     “Auto Activation triggers for java”这个选项,在“.”后加abc等字母,
16 然后“apply”,点击“OK”。
17 
18 
19 3.代码颜色修改
20   window→Preferences→java→Editor→syntax coloring
21 
22 
23 4.取消myeclipse自带的jdk加入自己的jdk
24   window→Preferences→java→Installed jRes
25    点击右边的add 加入java jdk的安装目录
26 
27 
28 5.添加自己的jar文件
29    window→Preferences→java→bulid path→use libraries
30 
31 6.取消拼音检查
32   windows→perferences→general→editors→Text Editors→spelling
33 
34 7.设置jsp的默认编码utf-8
35    windows→perferences→Myeclipse →files and editors→jsp
36    修改为utf-8
37 
38 8.取消myeclipse自动生成代码的注释
39    window→Preferences→java→code style→code tempplates
40    选择右边的 method body 点击edit 去掉代码的注释
41 9. eclipse(MyEclipse)关闭鼠标移动提示代码功能:
42 
43     eclipse(MyEclipse)-->window-->Java-->Editor-->Hovers-->Combined Hover(去掉这个选项就可以了)
44 
45 10. Eclipse MyEclipse 中JS中文乱码解决方法
46 
47 
48 可依次选择"window">>"preferences">>"general">>"content types"
49 
50 在右边的窗口中打开列表,选中"JavaScript",在下面的"default encoding"右边的输入框中输入"GBK"再点"update"按钮,再打开JS文件就可以
51 
52 
53 11 设置文件默认打开方式
54     eclipse(MyEclipse)-->window-preferences-general-Editors-File Assocaiations
55     
56 12.修改代码格式化换行的长度
57 
58 1.Java代码
59 
60 打开Eclipse的Window菜单,然后Preferences->Java->Code Style->Formatter->Edit/Show(根据不同版本可用的按钮会不一样) ->Line Wrapping->Maximum line 由默认的80改成自己想要设定的长度
61 
62 2.Html代码
63 
64 Window->Preferences->MyEclipse->Files and Editors->Html->Html Source->Line width->加个0以后保存。
65 
66 3.xml代码
67 
68 Window->Preferences->MyEclipse->Files and Editors->xml->xml Source->->Line width->999
69 
70 
71 13   1、window-preferences-MyEclipse Enterprise Workbench-Maven4MyEclipse-Maven,将Maven JDK改为电脑上安装的JDK,即不使用myeclipse提高的JDK
72 登记add按钮,选择你的电脑上的JDK即可(注意:不是JRE,我的值为:Java6.01473      2、window-preferences-MyEclipse Enterprise Workbench-Matisse4Myeclipse/Swing,将Design-time information(dt.jar) location 改用电脑安装的JDK的dt.jar
74   (即不使用myeclipse提供的dt.jar,我的值为:C:\Java6.014\lib\dt.jar)
75       经过以上的优化,myeclipse的启动时间可以减少2/3,Tomcat的启动速度可以减少1/2(视具体情况而定)
76 
77 14  取消自动验证,该成手动验证
78 windows-->perferences-->myeclipse-->validation
79 将Build下全部勾取消,保留Manual(手动) 如果你需要验证某个文件的时候,我们可以单独去验证它。方法是,在需要验证的文件上( 右键 -> MyEclipse -> Run Validation   
原文地址:https://www.cnblogs.com/hacket/p/3038137.html