MyEclipse開發習慣

1.顏色設置-調整爲合適閱讀的淺綠色
(1)Window-Preferences-General-Editors-Text Editors
a.Backgroudcolors-背景色-設置爲RGB(204,232,207)
b.Current-linehighlight-當前行高亮顏色-RGB(204,232,167)
(2)Window-Preferences-General-Editors-Text Editors-Annotations
a.Occurrences-高亮輔助-RGB(145,208,151)
b.Write Occurrences-變量名高亮輔助-RGB(145,208,151)

2.取消自動validation
validation有一堆,什麼xml、jsp、jsf、js等等,我們沒有必要全部都去
自動校驗一下,只要需要的時候纔會手動校驗一下!
取消方法
window-preferences-myeclipse-validation除開Manual下面的
複選框選中之外,其他全部不選
手動驗證
在要驗證的文件上,單擊鼠標右鍵-myeclipse-run validation

3.取消Eclipse拼寫檢查
window-preferences-general-editors-Text Editors-spelling

4.取消MyEclipse的啓動項
(1)WTP:一個跟MyEclipse差不多的東西,主要差別是WTP是免費的,
如果使用MyEclipse則可以取消
(2)Mylyn:組隊任務管理工具,類似於CVS,以任務爲單位管理項目進度,
沒用到的可以取消
(3)Derby:一種保存成jar形式的數據庫,沒用到可以取消
(4)Myeclipse EASIE:MyEclipse支持的服務器,除了tomcat6.x,其餘去掉

5.更改jsp默認打開的形式
window-preferences-general-editors-file associations

6.自動提示功能
window-preferences-Java-Editor-Content Assist在Auto-Activation
下的for Java後面輸入.abcdefghijklmnopqrstuvwxyz-Apply-OK

7.Eclipse註釋模板
window-preferences-Java-Code Style-Code Template
(1)Comments-Types 類註釋
/**
* ━━━━━━神獸出沒━━━━━━
*    ┏┓   ┏┓
*   ┏┛┻━━━┛┻┓
*   ┃       ┃
*   ┃   ━   ┃
*   ┃ ┳┛ ┗┳ ┃
*   ┃       ┃
*   ┃   ┻   ┃
*   ┃       ┃
*   ┗━┓   ┏━┛Code is far away from bug with the animal protecting
*     ┃   ┃    神獸保佑,代碼無bug
*     ┃   ┃
*     ┃   ┗━━━┓
*     ┃       ┣┓
*     ┃       ┏┛
*     ┗┓┓┏━┳┓┏┛
*      ┃┫┫ ┃┫┫
*      ┗┻┛ ┗┻┛
*
* ━━━━━━感覺萌萌噠━━━━━━
* @author 名字
* @ClassName ${type_name}
* @Version 版本
* @ModifiedBy 修改人
* @Copyright 公司名稱
* @date ${date} ${time}
* ${tags}
*/
(2)Comments-Methods 方法註釋
/**
* @author 名字
* @date ${date} ${time}
* ${tags}
*/
(3)Comments-Overriding methods 重寫註釋
/**
* @author 名字
* @date ${date} ${time}
* ${tags}
*/
(4)Comments-Delegate methods
/**
* @author 名字
* @date ${date} ${time}
* ${tags}
*/


8.字體大小
window-preference-General-Appearance-Colors and Fonts
(1)Basic-Text Font
字體:Courier New
字形:常規
大小:四號(或14)


9.控制檯字體
點擊控制檯右鍵-preferences-Run/Debug-Console
(1)Background color背景色-黑色
(2)Standard Out text color控制檯輸出-綠色

10.顯示行號
window-preference-Editors-Text Editor-選中Show line numbers
或者在類中左邊右鍵,選中Show line numbers


11.去掉Folding
右鍵行號位置-Folding-Enable Folding

12.myeclipse修改默認創建JSP編碼
window-preferences-myeclipse enterprise workbench-file and editors-jsp
在這個頁面裏邊就有了Encoding












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