在IDEA中關(guān)閉重復(fù)代碼檢查可以按照以下步驟操作:
- 打開IDEA并進(jìn)入項(xiàng)目。
- 點(diǎn)擊菜單欄中的 “File” -> “Settings”。
- 在彈出的窗口中,選擇 “Editor” -> “Inspections”。
- 在右側(cè)的搜索框中輸入 “Duplicate code”。
- 點(diǎn)擊 “Duplicate code” 下方的復(fù)選框,將其取消選中。
- 點(diǎn)擊右下角的 “Apply” 和 “OK” 按鈕保存設(shè)置。
完成以上步驟后,IDEA將不再對(duì)項(xiàng)目中的重復(fù)代碼進(jìn)行檢查。如果需要重新啟用重復(fù)代碼檢查,只需按照相同的步驟再次打開并選中 “Duplicate code” 復(fù)選框即可。