Replace Method Code Duplicates
The Replace Method Code Duplicates allows you to find code repetitions similar to the selected method and replace them with calls to the method.
To replace method code duplicates
- Position the cursor within the method, duplicates of which you want to search for.
- Do one of the following to open the Replace Method Code Duplicates dialog box:
- On the menu, choose .
- On the context menu, choose .
- Press the Replace button to continue. For each code fragment found, IntelliJ IDEA will prompt you to confirm replacement.
Last modified: 24 March 2015