This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Quite often you can have some repeated code blocks in project and this function would help you to find then and possibly replace with method call. Also option to specify minimum number of lines of code that could be marked as duplicate and some other options would be great.
I agree with 'vriha'. It is very often that many programmers (specially when working with open source code) do copy and paste of pieces of code. You finish with duplicates all around a single project. Having a plugin which allows to spot them would be of great help.
https://github.com/hudayou/fib Here is a tool to find identical code blocks in a file or directory
This feature is really needed. There is a plugin called PMD Copy and Paste detector http://plugins.netbeans.org/plugin/1529 but first it is not further developed and second I got the sources from the developer and I'm searching for help (bug fixes, enhancements and so on.) Here is the code: https://github.com/Chris2011/Nb-Pmd-Cpd. Maybe someone can help me with my "fork". Regards Chris
What I prefer is a whole new menu entry called analyze, like the source -> inspect menu entry but it should be on first level navigation like source, refactor, run and so on, like in intelliJ. You have a lot of functionality like find duplicates, and so on.