RubyMine 7.0.1 Web Help

Refactor | Inline
<context menu of a selection> | Refactor | Inline
Ctrl+Alt+NCtrl+Alt+NCtrl+Alt+NCtrl+Alt+NCtrl+Alt+NCtrl+Alt+NCtrl+Alt+NShift+Alt+IAlt+⌘+NAlt ⌘ NAlt ⌘ NAlt ⌘ IAlt ⌘ N

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>)

See Also


Web Resources: