GoLand 2018.2 Help


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

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

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

  3. In the Inline dialog that corresponds to the selected symbol, specify the inlining options. Preview and apply changes. (When inlining a variable, simply confirm the inline refactoring.)

    Last modified: 12 October 2018

    See Also