IntelliJ IDEA
 
Get IntelliJ IDEA
You are viewing the documentation for an earlier version of IntelliJ IDEA.

Inline

Last modified: 10 August 2022

Shortcut: Ctrl+Alt+N

The Inline refactoring lets you reverse the Extract refactoring for a method , constructor, parameter, superclass, anonymous class, and variable.

You can inline the pattern variable since the Java 14 version. In this case, all the occurrences will be replaced with old-style cast expression.