【轉(zhuǎn)】 myeclipse常用設(shè)置(轉(zhuǎn))
轉(zhuǎn)載自 chssheng2007
最終編輯 chssheng2007
設(shè)置工作空間的項(xiàng)目編碼, 防止出現(xiàn)亂碼
Window - Preferences - General - Workspace 將"Text file encoding"選為"Other" - "UTF-8" 改變現(xiàn)有項(xiàng)目的編碼的步驟: 右擊項(xiàng)目屬性, 選擇"Text file encoding"的編碼 設(shè)置其它文件的編碼 Window -> Preferences -> General -> Content Types 將需要設(shè)置的文件設(shè)置編碼, 最好統(tǒng)一設(shè)為UTF-8 設(shè)置后, 如Javascript文件可正常顯示中文 設(shè)置創(chuàng)建JSP頁面時,將JSP的默認(rèn)編碼設(shè)為UTF-8 Window -> Preferences -> MyEclipse -> Files and Editors -> JSP 將"Encoding"選為"ISO10646/Unicode(UTF-8) 去掉格式化JSP時頁面中的空行 Window -> Preferences -> MyEclipse -> HTML -> HTML Source 勾選"Clear all blank lines" 增強(qiáng)Eclipse的自動代碼提示功能 默認(rèn)下, 只有按"."或"Alt + /"才出現(xiàn)代碼提示功能, 不夠強(qiáng)大, 作小小設(shè)置, 可將代碼提示功能像VS的一樣方便 1. Window -> Preferences -> Java -> Editor -> Content Assist 2. 將"Auto Activation triggers for java"設(shè)置為".abc"(默認(rèn)是"."), 點(diǎn)"Apply"應(yīng)用 3. 導(dǎo)出目前的Eclipse配置文件: File -> Export -> General -> Perferences, 選擇保存路徑, 保存得到*.epf文件 4. 用文本編輯器打開剛才保存的*.epf文件, 搜索".abc", 將".abc"部分改為 ".abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ(," (以上為自動提示的觸發(fā)字符, 根據(jù)個人習(xí)慣設(shè)置), 保存此配置文件(個人覺得不太好用,容易出錯) 5. 導(dǎo)入此配置文件: File -> import -> General -> Perferences, 導(dǎo)入修改后的配置文件. 第一個選項(xiàng)為反應(yīng)時間,可設(shè)為100左右(默認(rèn)200) 高亮類中同一引用的使用位置 Window -> Perferences -> General - > Editors -> TextEditors -> Annotations 選擇"Occurrences",勾引"Text as" -> "Highlighted"(塊高亮)或"Squiggles"(虛線) Link with Editor 打開類后, 自動在包管理器這里顯示類的位置 ![]() 取消Myeclipse的自動文件驗(yàn)證(卡傻的原因) Windows –> Perferences –>Myeclipse –> Validation 保留manual(手動)部分,build下只留"classpath dependency Validator" 手動驗(yàn)證: 右鍵文件 -> Myeclipse -> Run Validation 取消拼寫錯誤檢查 我愛故意寫錯單詞, 不需要系統(tǒng)幫我檢查 Windows –> perferences –> General –> Editors-> Text Editors -> Spelling 去掉"Enable spell checking"勾選 關(guān)閉不需要的啟動項(xiàng) MyEclipse:
Windows –> Perferences–> General–> Startup and Shutdown 我只保留了 ![]() ![]() 順序下來: 1, Tomcat6: 必備的... 2, 內(nèi)存監(jiān)視器: 可以查看Myeclipse的使用內(nèi)存, 我喜歡這工具(在菜單Myeclipse - Utilities - Show Heap Status打開) 3, JSP Debug工具, 其實(shí)我也沒用過, 怕有一天用到... 4, 文件創(chuàng)建向?qū)?個人經(jīng)常用到) 5, 向后兼容的意思吧, 怕有一天會用到, 但其實(shí)很少用, 可去掉 6, 透視圖, 應(yīng)該可以去掉吧... 其實(shí)就只用選擇Tomcat6 關(guān)閉自動更新 1, Eclipse: Windows –> Perferences–> Install/Update -> Automatic Updates 不勾選"Automatically find new updates and notify me" 2, Myeclipse: 1)Windows –> Perferences–> MyEclipse... -> Community Essentials &nb sp; 不勾選"Search for new features at startup" 2)Windows –> Perferences–> MyEclipse... -> Maven4MyEclipse 不勾選"Download repository index updates on startup" |
posted on 2011-04-23 12:05 飛天wfu 閱讀(419) 評論(0) 編輯 收藏 所屬分類: Java EE 學(xué)習(xí)