feitian

          My Links

          Blog Stats

          常用鏈接

          留言簿

          隨筆分類(lèi)

          隨筆檔案


          搜索

          最新評(píng)論

          閱讀排行榜

          評(píng)論排行榜

          【轉(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頁(yè)面時(shí),將JSP的默認(rèn)編碼設(shè)為UTF-8

              Window -> Preferences -> MyEclipse -> Files and Editors -> JSP
              將"Encoding"選為"ISO10646/Unicode(UTF-8)

          去掉格式化JSP時(shí)頁(yè)面中的空行
             Window -> Preferences -> MyEclipse -> HTML -> HTML Source
              勾選"Clear all blank lines"

          增強(qiáng)Eclipse的自動(dòng)代碼提示功能
              默認(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. 用文本編輯器打開(kāi)剛才保存的*.epf文件, 搜索".abc", 將".abc"部分改為
                 ".abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ(," (以上為自動(dòng)提示的觸發(fā)字符,
                 根據(jù)個(gè)人習(xí)慣設(shè)置), 保存此配置文件(個(gè)人覺(jué)得不太好用,容易出錯(cuò))
              5. 導(dǎo)入此配置文件: File -> import -> General -> Perferences, 導(dǎo)入修改后的配置文件.

              第一個(gè)選項(xiàng)為反應(yīng)時(shí)間,可設(shè)為100左右(默認(rèn)200)

          高亮類(lèi)中同一引用的使用位置
             Window -> Perferences -> General - > Editors -> TextEditors -> Annotations
              選擇"Occurrences",勾引"Text as" -> "Highlighted"(塊高亮)或"Squiggles"(虛線)

          Link with Editor
              打開(kāi)類(lèi)后, 自動(dòng)在包管理器這里顯示類(lèi)的位置
            


          取消Myeclipse的自動(dòng)文件驗(yàn)證(卡傻的原因)
              Windows –> Perferences –>Myeclipse –> Validation
             保留manual(手動(dòng))部分,build下只留"classpath dependency Validator"

              手動(dòng)驗(yàn)證: 右鍵文件 -> Myeclipse -> Run Validation

          取消拼寫(xiě)錯(cuò)誤檢查
              我愛(ài)故意寫(xiě)錯(cuò)單詞, 不需要系統(tǒng)幫我檢查
              Windows –> perferences –> General –> Editors-> Text Editors -> Spelling
              去掉"Enable spell checking"勾選

          關(guān)閉不需要的啟動(dòng)項(xiàng)
               MyEclipse:
              Windows –> Perferences–> General–> Startup and Shutdown

              我只保留了
            
            
              順序下來(lái):
              1, Tomcat6: 必備的...
              2, 內(nèi)存監(jiān)視器: 可以查看Myeclipse的使用內(nèi)存, 我喜歡這工具(在菜單Myeclipse - Utilities - Show Heap Status打開(kāi))
              3, JSP Debug工具, 其實(shí)我也沒(méi)用過(guò), 怕有一天用到...
              4, 文件創(chuàng)建向?qū)?個(gè)人經(jīng)常用到)
              5, 向后兼容的意思吧, 怕有一天會(huì)用到, 但其實(shí)很少用, 可去掉
              6, 透視圖, 應(yīng)該可以去掉吧...

              其實(shí)就只用選擇Tomcat6

          關(guān)閉自動(dòng)更新
              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 閱讀(418) 評(píng)論(0)  編輯  收藏 所屬分類(lèi): Java EE 學(xué)習(xí)

          主站蜘蛛池模板: 茶陵县| 尖扎县| 刚察县| 济源市| 囊谦县| 衡山县| 赤城县| 崇仁县| 天津市| 靖江市| 什邡市| 玉田县| 灵丘县| 嵊泗县| 霞浦县| 吴川市| 昌宁县| 嘉义县| 临江市| 霍林郭勒市| 舟山市| 泰来县| 松原市| 交城县| 新和县| 拉孜县| 射洪县| 六安市| 营口市| 麻栗坡县| 仙桃市| 同江市| 泸州市| 新乐市| 自治县| 太原市| 宜城市| 和政县| 遵化市| 乌海市| 土默特左旗|