Eclipse幾個常用設定
更改Eclipse的字型
更改預設字型
Window->Preferences->General->Appearance->Colorsand Fonts ->Basics->Text Font
更改編輯器字型
Window->Preferences->General->Appearance->Colorsand Fonts->Java->Java Editor Text Font(不更改則使用預設字型)
更改控制檯字型
Window->Preferences->General->Appearance->Colorsand Fonts->Debug->Console Font
自定義快捷鍵
Window->Preferences->General->Keys
選中要指定快捷鍵的專案,在Binding裡輸入快捷鍵
更改拼寫檢查設定(類似於word的拼寫檢查)
Window->Preferences->General->Editors->Text Editors->Spelling
可選擇是否Enable spell checking
自定義程式碼模板
Window->Preferences->Java->Editor->Templates
選擇New
自定義格式化參考模板
Window->Preferences->Java->CodeStyle->Formatter
Eclipse自帶了3個模板檔案,這些都是不可更改的,我們可以點New按鈕,新建一個模板檔案,這樣就可以更改了。
讓Eclipse自動生成一些方法(例如成員變數的get和set方法)
在編輯器面板點右鍵選擇Source選單項,以Generate 開頭的選單項就是系統自動生成程式碼的選項,例如Generate Getters and Setters…就是自動生成成員變數的get和set方法