- 方法分隔線:
Settings → Editor → General → Appearance → Show method Separators
- 顯示空白符:
Settings → Editor → General → Appearance → Show whitespaces
- 自動去除行末尾空格:
Settings → Editor → General → Other → Strip trailing spaces on Save → All/Modified Lines
- 顯示行號:
Settings → Editor → General → Appearance → Show line numbers
- 單行註釋默認不在行首:
Settings → Editor → Code Style → Java → Code Generation → Add a space at comment start
- 設置類註釋信息:
- 設置路徑:
Settings → Editor → File and Code Templates → Includes → File Header
- 備註:開啓
Enable Live Templates
選項 - 代碼模板:
/**
* @author name
* @date ${DATE}
* @description 在這裏填寫類描述...
*/
- 設置自動生成
serialVersionUID
屬性:Settings → Editor → Inspections → Java → Serialization issues
Serializable class without 'serialVersionUID'
'serialVersionUID' field not declared 'private static final long'
- 顯示項目結構樹縮進參考線:
Settings → Editor → General → Appearance → Show tree indent guides
- 忽略文件:
Settings → Editor → File Types → Ignore files and folders
- .idea;
- *.iml ;
10.去除Field injection is not recommended
警告:Settings → Editor → Inspections → Spring → Spring Core → Code → Field Injection warning