Inline dialogs
Refactor | Inline
<context menu of a selection>| Refactor | Inline
The Inline Variable refactoring allows you to replace a redundant variable with its value. See examples.
To access the Inline Variable dialog through a menu item or the keyboard shortcut, place the caret at the variable to be inlined.
Inline variable <variable name>? (<the number of variable occurrences>)