【IntelliJ IDEA】常用設置-文字版

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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章