IntelliJ IDEA2021.1 配置大全(超詳細(xì)教程)
二、IDEA基本配置
FIle -> Settings
1.設(shè)置主題
FIle -> Settings... -> Appearance & Behavior -> Appearance -> Theme下拉選擇主題
2.關(guān)閉idea自動更新
FIle -> Settings... -> Appearance & Behavior -> System Settings -> Updates -> Check IDE updates for 前面去掉對勾
3.隱藏.idea文件和.iml等文件
FIle -> Settings... -> Editor -> File Types -> Ignored Files and Folders -> + -> *.idea,*.iml
4.修改編寫代碼的字體和大小
FIle -> Settings... -> Editor -> Font -> 設(shè)置字體Font 和 大小Size
5.修改項目文件等編碼
?
FIle -> Settings... -> Editor -> File Encodings -> 3處位置全部設(shè)為[UTF-8] -> Transparent native-to-ascii conversion前面對勾打上
?
?
?
?
6.設(shè)置代碼提示忽略大小寫
FIle -> Settings... -> Editor -> Code Completion -> Match case前面把對勾去掉
7.設(shè)置自動導(dǎo)包
FIle -> Settings... -> Editor -> General -> Auto Import -> Insert imports on paste選擇Always -> 2個對勾打上
?
?
8.生成serialversuinUID
?
FIle -> Settings... -> Editor -> Inspections -> Java -> Serialization issues -> Serializable class without 'serialVersionUID' 后面加上對勾
?
將光標(biāo)放到類名上按Atl+Enter鍵就會提示生成serialVersionUID了。
9.設(shè)置一個Tab為4個空格鍵
FIle -> Settings... -> Editor -> use tab character前面取消勾
?
?
10.導(dǎo)入導(dǎo)出配置
File -> Mange IDE Settings
11.在歡迎界面導(dǎo)入配置
二、IDEA添加jdk流程
歡迎界面點擊:Projects -> New Project,在彈出的窗口中選擇Project SDK -> Add JDK…
三、IDEA添加tomcat流程
四、IDEA添加maven流程
FIle -> Settings... ->Build,Execution,Deployment -> Build Tools -> Maven