GoLand 2021.1 Help

Inline

Use the Inline refactoring to reverse the extract refactoring for a method or a variable.

  1. Place the caret at the code fragment you want to inline.

  2. Press Ctrl+Alt+N. Alternatively, select Refactor | Inline from the main or context menu.

  3. In the Inline dialog, specify the inlining options.

  4. Preview and apply changes.

Inline editing in GoLand
    Last modified: 08 July 2021