IDEA的 tool 之 Duplicate detector
Found duplicate code less… (Ctrl+F1)
Inspection info:Detects duplicates in source code
有重复代码提示的时候,又想知道重复代码在哪,可以用全局搜索搜出来;
也可以用工具 Duplicate detector ;
出现在这个位置的工具,只有在出现以后才能在
View - Tool Windows - Duplicate detector 这里找到;那么怎么才能让它出现呢?现有的很少有提到这个工具的文字;
这个是没有出现过这个工具的样子;
找到有重复提示波浪线的地方,按 ALT + Enter
See other similar duplicates
这样Duplicate detector 就出来了;在关闭了项目以后, 它又会不默认显示出来;
我用的版本: IntelliJ IDEA 2018.3.3 x64
over.