Inline dialogs
Refactor | Inline
<context menu of a selection>| Refactor | Inline
CtrlAlt0N
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>)
Inline Method refactoring places method's body into the body of its caller(s). You have the option to:
inline all occurrences of the method, and delete the method
inline all occurrences of the method, and retain the method
inline only a single occurrence and retain the method
Item | Description |
---|---|
Inline all usages, remove the method | Select this option to replace all the method calls with its code and remove the method. |
Inline all usages, keep the method | Select this option to replace all the method calls with its code and keep the method intact. |
Inline this usage only, keep the method | Select this option to replace only the current method call. |
Preview | Click this button to see the expected changes prior to actually performing the refactoring. |
Refactor | Click this button to perform the refactoring right away. |
Thanks for your feedback!