IntelliJ IDEA關閉「Found duplicate code in」提示

1、  IntelliJ IDEA默認會打開「Found duplicate code in」提示,主要提示有重複代碼塊: 2、關閉該提示;File → Settings → Editor → Inspections;在Settings頁面右側的搜索欄處搜索 「Duplicated Code」,取消掉Duplicated Code後面的勾選,再保存設置即可:
相關文章
相關標籤/搜索