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