1. 程式人生 > >IntelliJ IDEA 常用配置

IntelliJ IDEA 常用配置

IntelliJ IDEA 常用配置

參考示例

1. IntelliJ IDEA 常用設定(一)
2. IntelliJ IDEA 常用設定(二)
3. IntelliJ IDEA 常用設定(三)
4. IDEA使用總結
5. 詳細圖解最常用的配置

實踐問題

1. IntelliJ IDEA 編譯報錯:Error:java: Compilation failed: internal java compiler error
settings(ctrl + alt + s)Build > Compiler > Java Compiler 檢查JDK的編輯,語法,設定是否匹配
2. 檢視類結構
(alt + 7)> Structure
3.按Ctrl+左鍵,不能進入類或方法的【解決辦法】,提示Cannot find declaration to go to
關閉當前專案,Import PrOject
4. java.lang.UnsupportedClassVersionError: Unsupported major.minor version 52.0
選擇執行類的配置JRE
5. 包展示方式設定
去掉Hide Empty Middle Packages的勾選,勾選Flatten packages 選項
6. 程式碼提示和補充:區分大小寫
Editor > General > Code Completion > Case sensitive completion(None:不區分大小寫)
7. 檢視上,下一個檔案
alt + 左,右方向
8. 顯示行數和方法線
Editor > General > Appearance > show line numbers ,show method separators
9. 單詞拼寫檢查開啟
開啟設定,Editor -> Inspections,勾選 Spelling > typo後