feitian

          My Links

          Blog Stats

          常用鏈接

          留言簿

          隨筆分類

          隨筆檔案


          搜索

          最新評論

          閱讀排行榜

          評論排行榜

          【轉】 myeclipse常用設置(轉)

          轉載自 chssheng2007
          最終編輯 chssheng2007
          設置工作空間的項目編碼, 防止出現亂碼
             Window - Preferences - General - Workspace
             將"Text file encoding"選為"Other" - "UTF-8"
              改變現有項目的編碼的步驟: 右擊項目屬性, 選擇"Text file encoding"的編碼

          設置其它文件的編碼
              Window -> Preferences -> General -> Content Types
              將需要設置的文件設置編碼, 最好統一設為UTF-8
              設置后, 如Javascript文件可正常顯示中文

          設置創建JSP頁面時,將JSP的默認編碼設為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"

          增強Eclipse的自動代碼提示功能
              默認下, 只有按"."或"Alt + /"才出現代碼提示功能, 不夠強大, 作小小設置, 可將代碼提示功能像VS的一樣方便
              1. Window -> Preferences -> Java -> Editor -> Content Assist
              2. 將"Auto Activation triggers for java"設置為".abc"(默認是"."), 點"Apply"應用
              3. 導出目前的Eclipse配置文件: File -> Export -> General -> Perferences, 選擇保存路徑, 保存得到*.epf文件
              4. 用文本編輯器打開剛才保存的*.epf文件, 搜索".abc", 將".abc"部分改為
                 ".abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ(," (以上為自動提示的觸發字符,
                 根據個人習慣設置), 保存此配置文件(個人覺得不太好用,容易出錯)
              5. 導入此配置文件: File -> import -> General -> Perferences, 導入修改后的配置文件.

              第一個選項為反應時間,可設為100左右(默認200)

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

          Link with Editor
              打開類后, 自動在包管理器這里顯示類的位置
            


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

              手動驗證: 右鍵文件 -> Myeclipse -> Run Validation

          取消拼寫錯誤檢查
              我愛故意寫錯單詞, 不需要系統幫我檢查
              Windows –> perferences –> General –> Editors-> Text Editors -> Spelling
              去掉"Enable spell checking"勾選

          關閉不需要的啟動項
               MyEclipse:
              Windows –> Perferences–> General–> Startup and Shutdown

              我只保留了
            
            
              順序下來:
              1, Tomcat6: 必備的...
              2, 內存監視器: 可以查看Myeclipse的使用內存, 我喜歡這工具(在菜單Myeclipse - Utilities - Show Heap Status打開)
              3, JSP Debug工具, 其實我也沒用過, 怕有一天用到...
              4, 文件創建向導(個人經常用到)
              5, 向后兼容的意思吧, 怕有一天會用到, 但其實很少用, 可去掉
              6, 透視圖, 應該可以去掉吧...

              其實就只用選擇Tomcat6

          關閉自動更新
              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 閱讀(421) 評論(0)  編輯  收藏 所屬分類: Java EE 學習

          主站蜘蛛池模板: 通山县| 九台市| 安福县| 逊克县| 荃湾区| 神农架林区| 宝丰县| 宜兰县| 怀集县| 金湖县| 铜川市| 沙田区| 八宿县| 新巴尔虎右旗| 偏关县| 临安市| 大悟县| 晴隆县| 和田县| 客服| 白城市| 西峡县| 章丘市| 阳信县| 固镇县| 万盛区| 怀集县| 湘阴县| 德州市| 铁力市| 千阳县| 虞城县| 云和县| 志丹县| 九江县| 大名县| 鲁山县| 乌鲁木齐市| 广河县| 巴彦县| 龙里县|