具体操作 File–>settings–>Editor–>Inspections–>General–>Duplicated Code fragment把右侧的√取消掉然后Apply再确定就行了 图片教程: 下一步 下一步