Find and Replace Code Duplicates
To find and replace code duplicates
- Position the cursor within the method or a constant field whose duplicates you want to search for.
- Select Refactor | Find and Replace Code Duplicates from the main or context menu.
- In the dialog that opens, select the scope where IntelliJ IDEA shall look for code duplicates.
- For each found code duplicate, IntelliJ IDEA will prompt you to confirm the replacement.
Last modified: 23 November 2016