在idea中如何关闭重复代码的提醒 通过设置页面取消 点击“File”> “Setting”打开设置页面,然后依次点开“Editor”>“Inspections”选择“General -> Duplicated Code”取消复选框。如下: