Duplicated code fragment
Reports duplicated blocks of code from the selected scope: the same file or the entire project.
- By ID
Can be used to locate inspection in e.g. Qodana configuration files, where you can quickly enable or disable it, or adjust its settings.
DuplicatedCode
The inspection features quick-fixes that help you to set the size of detected duplicates, navigate to repetitive code fragments, and compare them in a tool window.
The inspection options allow you to select the scope of the reported duplicated fragments and set the initial size for the duplicated language constructs.
Here you can find the description of settings available for the Duplicated code fragment inspection, and the reference of their default values.
Inspection Details | |
---|---|
By default bundled with: | CLion 2025.1, GoLand 2025.1, IntelliJ IDEA 2024.3, PhpStorm 2024.3, PyCharm 2025.1, Qodana for Go 2025.1, Qodana for JS 2025.1, Qodana for JVM 2024.3, Qodana for PHP 2024.3, Qodana for Ruby 2025.1, RubyMine 2025.1, WebStorm 2025.1 |
Can be installed with plugin: | IDEA CORE, 251.24737 |