GoLand 2018.3 Help

Inline

Inline refactoring

The Inline refactoring lets you reverse the extract refactoring for a method or a variable.

  1. Place a cursor within the code fragment you want to inline.

  2. Press Ctrl+Alt+N. Alternatively, click Refactor | Inline.

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

  4. Preview and apply changes.

    Last modified: 6 February 2019

    See Also