Disable IDEA Duplicate Code Prompt

http://www.bug315.com/article/516.htm

 

When coding with IDEA, repeated codes will be underlined with grey wavy lines.

 

There are two ways to cancel the IDEA repeated code prompt.

Method 1: Cancel through the settings page

Click "File" > "Setting" to open the settings page, then click "Editor" > "Inspections" and select "General -> Duplicated Code" to uncheck the checkbox. as follows:

 

Method 2: Select "Disable inspection" directly on the page

Hover over the repeated code for a moment and a light bulb icon will appear. Then click the drop-down box and select "View duplicates like this" -> "Disable inspection" to disable code duplication. As shown below:

 

 

 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326325285&siteId=291194637