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.
To access the Inline Variable dialog through a menu item or the keyboard shortcut, place the caret at the variable to be inlined.
The inline refactoring turns the following two variables:
name := person.Name
data := getData (name)
into
data := getData (person.Name)
Also, all occurrences of the name
variable is replaced with person.Name
.
Thanks for your feedback!
Was this page helpful?