IntelliJ IDEA 2017.3 Help

Inline Dialogs

Refactor | Inline
<context menu of a selection>| Refactor | Inline

Inline Variable dialog

The Inline Variable refactoring allows you to replace a redundant variable with its value. See examples.

To access the Inline Variable dialog box through a menu item or the keyboard shortcut, position the cursor at the variable to be inlined. The dialog box does not contain any controls but just displays the following message:

Inline variable <variable name>? (<the number of variable occurrences>)

Inline to Anonymous Class dialog

All references and remove the classSelect this radio button to replace all the class references with its code and remove the class.
This reference only and keep the classUse this option to replace only the current class reference.
Search in comments and stringsSelect this checkbox to display the usages of methods in comments and strings in the Refactoring Preview tool window.

This option will force the Refactoring Preview tool window to open even if you click the Refactor button instead of the Preview button.

Search for text occurrencesCheck this option to apply the changes to non-java files (such as documentation, HTML, JSP and other files included in the project).
Last modified: 6 March 2018

See Also