GoLand 1.0 Help

Replace Method Code Duplicates Dialog

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 find and replace code duplicates

  1. Position the cursor within the method or a constant field whose duplicates you want to search for.
  2. Select Refactor | Find and Replace Code Duplicates from the main or context menu.
  3. In the dialog that opens, select the scope where GoLand shall look for code duplicates.
  4. For each found code duplicate, GoLand will prompt you to confirm the replacement.
Last modified: 2 November 2017

See Also