eclipse的常用配置

設置工作空間的項目編碼, 防止出現亂碼 
    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) 


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


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

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

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


自定義類、方法、屬性的註釋

Windows –> perferences –>JAVA->Code Style ->Code Template

import/export 模版

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章