因爲重裝N次eclipse了,每次要重新設置一大堆,所以乾脆寫個帖子記下來.
1.字體
默認狀態的中文字體顯示很小,所以解決辦法是修改一下字體.
菜單->windows-->prefereces,General-->Appearance-->Colors and Fonts,Base->base font->Edit.
選擇一個喜歡的字體,如 中文字體(Consolas 腳本:中歐字符)
2.編碼 將編碼統一成utf-8
菜單->windows-->prefereces,General-->workspace,Types->Other->UTF-8->OK
3.java代碼自動補全
java->Editor->Contant Assist
._abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
4.java Templete
5.java Comment.類註釋等
Window->Preference->Java->Code Style->Code Template
參考:http://www.cnblogs.com/senzjx/archive/2009/09/21/1570950.html
6.插件
color theme 顏色主題 ,用來控制顯示的UI
color theme - http://eclipse-color-theme.github.io/update
我用的sublime Text2
7.檢索高亮色,debug高亮色等
菜單->windows-->prefereces,General-->Editors->Text Editors->Annotations
8.代碼每行允許的長度(格式化用)
引用window->preferences->java->code style->formatter->edit->line wrapping->maximum line width 修改後保存就可以了
長度提示線: General--->Editors--->TestEditors,在這裏面,把show print margin選上, Print margi column處填寫長度。
9.顯示空白字符
windows ->Preferences->General->Editors->Text Editors->Show whitespace characters