myeclipse和eclipse優化設置
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
13 1、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
本文由用戶 289434497 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!