setting和other setting的區(qū)別
1.setting設(shè)置的是局部變量
2.other setting設(shè)置的是全局變量,即新打開的IDEA窗口也會生效。
一.常用配置
1.關(guān)閉重復(fù)代碼提示(IDEA去掉波浪線)
other setting -> Editor -> Inspections -> General -> Duplicated code fragment 取消勾選
2.IDEA去掉xml中黃色背景
other setting -> Editor -> inspections -> SQL-> No data sources configured(沒有配置數(shù)據(jù)源)和 SQL dialect detection(SQL方言檢測) 取消勾選
3.Intellij IDEA 自動生成 serialVersionUID
other setting -> Editor -> inspections -> Serialization issues -> Serializable class without ’serialVersionUID’ 選中,在你的class中:Alt+Enter就會提示自動創(chuàng)建serialVersionUID了。
4.關(guān)閉Intellij IDEA自動更新
File->Settings->Appearance & Behavior->System Settings->Updates下取消Automatically check updates for勾選
5.設(shè)置自動引入包
other setting -> Editor -> General -> Auto Import

6.隱藏.idea文件夾和.iml等文件
File->Settings -> Editor -> File Types 下的”Ignore files and folders”一欄添加 *.idea;*.iml;
7.控制臺輸出亂碼,修改IDEA配置文件
1.設(shè)置所有文件為UTF-8編碼 other setting -> Editor -> File Encodings 將所有編碼都設(shè)置為UTF-8模式
2.修改idea配置文件 IDEA安裝目錄,將2個idea64.exe.vmoptions、idea.exe.vmoptions文件,追加:-Dfile.encoding=UTF-8
二.注釋配置
添加類注釋和方法注釋
File-> setting -> Editor -> Live Templates
1.選擇右上方+號,添加Template Group : userDefined
2.添加Live Template 方法注釋:* 和 類注釋:cc
1.類注釋
快捷鍵:cc
/**
* Title $NAME$
* Description $END$
* @author Chenyl
* @date $DATE$ $TIME$
**/

2.方法注釋
快捷鍵:/*
*
* $START$
* Method $NAME$
* @author Chenyl
* @date $DATE$ $TIME$
**/

三.常用插件
1.Free Mybatis plugin
free-idea-mybatis是一個提高mybatis編碼的插件。實現(xiàn)了dao代碼跳轉(zhuǎn)到mapper,mapper跳轉(zhuǎn)回dao,mapper文件、params自動生成功能。

2.Lombok
Lombok能以簡單的注解形式來簡化JAVA代碼,提高開發(fā)人員的開發(fā)效率.
Lombok能通過注解的方式,在編譯時自動為屬性生成構(gòu)造器、getter/setter、equals、hashcode、toString方法。
3.Mybatis-log-plugin
查看MySQL完整日志:參數(shù)自動賦值到占位符中,生成數(shù)據(jù)庫可執(zhí)行SQL,將SQL復(fù)制到數(shù)據(jù)庫中執(zhí)行,就能很快定位到問題了
4.GitToolBox
git工具箱,提供各種git操作。
1. git有更新都會提醒下載最新代碼

2.查看歷史提交記錄
把鼠標(biāo)放在;后面就可以查看是誰提交的
