RubyMine 5.4.3 Web Help

Refactor | Extract Variable

Refactor | Extract Variable

Use this dialog box to extract:

ItemDescriptionLanguage
NameSpecify the name for the new variable.All
Replace all occurrencesSelect this option to replace all the occurrences of the selected expression (if more than one occurrence of the selected expression is found).All
Var kindChoose to extract a (global) variable, a constant, or a local variable:
  • extract var - select this option to extract a global variable.
  • extract constant - select this option to extract a constant.
  • extract local variable - select this option to extract a local variable.

    Note

    The extract local variable option is available only for JavaScript 1.7 or a later version.

JavaScript

See Also

Procedures:

External Links:

Web Resources: