Is it possible to disable duplicate code detection in Intellij?

后端 未结 5 2051
傲寒
傲寒 2020-12-07 11:18

Is it possible to disable duplicate code detection in Intellij?

I haven\'t found this feature to be useful and it continues to distract me.

5条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-07 12:11

    This answer may be little irrelevant, but I found this helpful, From this answer if you want to disable it for a specific code block, not the entire method or class or ide, then just add the following line just before that code block

    //noinspection Duplicates
    

    Note: You can not put any other comment after this line.

提交回复
热议问题