Eclipse基础设置
文章目錄
- Eclipse基礎(chǔ)設(shè)置
- 1. 字體設(shè)置
- 2. 更改工作空間及文件類(lèi)型的默認(rèn)編碼為UTF-8
- 3. 設(shè)置Tab為4個(gè)空格
- 4,設(shè)置背景顏色為護(hù)眼的豆沙色或更改主題
- 5. 代碼自動(dòng)提示
- 6. 窗體布局重置
- 7. 禁止更新
- 8. 顯示行號(hào)
Eclipse基礎(chǔ)設(shè)置
每次重裝Eclipse都要重新設(shè)置,今天寫(xiě)下來(lái),以后供自己參考,也供大家參考。
1. 字體設(shè)置
Window --> Preferences --> General --> Appearance --> Text Font
2. 更改工作空間及文件類(lèi)型的默認(rèn)編碼為UTF-8
Window --> Preferences --> General --> Workspace --> Other --> UTF-8 --> Apply and Close
Window --> General --> Content Type --> Text --> Java Source File(可自行選擇) --> Default encoding --> UTF-8 --> Apply and Close
3. 設(shè)置Tab為4個(gè)空格
Window --> Preferences --> General --> Editors --> Text Editors --> …(如圖)
Window --> Preferences --> Java --> Code Style --> Formatter --> Edit… --> Indentation --> Spaces only --> 發(fā)現(xiàn)Apply點(diǎn)擊不了 --> 隨便更改Profile name --> Apply --> Apply and Close
4,設(shè)置背景顏色為護(hù)眼的豆沙色或更改主題
Window --> Preferences --> General --> Editors --> Text Editors --> Background color --> 取消System Default --> Color --> 規(guī)定自定義顏色 --> 調(diào)整數(shù)值(如圖) --> 添加到自定義顏色 --> 確定 --> Apply and close
Window --> Preferences --> General --> Appearance --> Theme --> 在下拉列表框中選擇自己喜歡的主題背景
5. 代碼自動(dòng)提示
Window --> Preferences --> Java --> Editor --> Content Assist --> Auto activation delay 設(shè)置為200 (鍵盤(pán)輸入到代碼提示出現(xiàn)的時(shí)間,單位為毫秒) --> Auto activation triggers for Java 將26個(gè)英文字母大小寫(xiě)和.都輸入(輸入后會(huì)有提示的字符) --> Apply and Close
6. 窗體布局重置
有時(shí)候把窗體弄得很亂,直接重置
Window --> Perspective --> Reset Perspective…
7. 禁止更新
Window --> Preferences --> Install/Update --> Automatic Update -->取消 Automatically find new updates and notify me
8. 顯示行號(hào)
Windows–>Preference–>General–>Appearance–>Editors–>Text Editors–>show line numbers
總結(jié)
以上是生活随笔為你收集整理的Eclipse基础设置的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: Kubernetes二进制集群部署+We
- 下一篇: 内存超频攻略:1600内存如何轻松提升性