Eclipse基礎(chǔ)配置:各種原因重新安裝Eclipse得重新配置自己熟悉的Eclipse開發(fā)界面,故將自己熟悉的配置在博客中記錄下來:
1. 設(shè)置主題與字體
Eclipse主題設(shè)置
Favorite Eclipse Color Theme:Oblivion
If you are on Eclipse 3.6 (Helios), the easiest way to install the plugin is from the Eclipse Marketplace. Go to Help→Eclipse Marketplace..., then search for Eclipse Color Theme and install it.
If you are on Eclipse 3.5 (Galileo), go to Help→Install New Software..., press Add Site and enterEclipse Color Theme as the name and http://eclipse-color-theme.github.com/update as the URL. Then select the new entry from the select box labeled Work with, mark Eclipse Color Theme for installation and proceed.
Please note: If you are using a version of the plugin lower than 0.6, please uninstall and reinstall it following the instructions above. Update site and plugin ID have changed.
After the installation, go to Window→Preferences→General→Appereance→Color Theme to change the color theme.
Eclipse字體設(shè)置
Java編輯區(qū)字體設(shè)置
推薦字體:Consoles驼唱、Courier New
windows->Preference->General->Appearence->Colors And Fonts
->Java->Java Editor Text Font->Edit->Apply->OK
XML編輯區(qū)字體設(shè)置
window--preferences--General--appearance--colors and fonts--Basic-- "Text font "
2. 代碼自動補全
Eclipse java代碼自動補全
Window->preferences->Java->Editor->Content Assist 再右下角Auto activation triggers for Java里面改為
abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
Eclipse xml文件自動補全
Windows->preferance->XML->XML Files->Editor->Content Assist
面板最上端 Auto Activation 將Prompt when these characters are inserted后面的文本框中的“<=:”替換成
“<=:abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ ”
3. 添加行號
添加行號:
windows-->Preferences-->General-->Editors-->TextEditors
勾選“show line numbers”
4. 編碼格式
推薦使用UTF-8
Windows-->Preferences->General->Appearances->Workspace->Text fike encoding->Other(UTF-8/GBK)
5. 取消改動Auto BuildingWorkspace
具體操作: Project -> Build Automatically
效果: 在代碼修改保存后,不會啟動自動編譯