WebStorm 2018.1 Help

Extract Variable Dialog

Refactor | Extract Variable
Ctrl+Alt+V

Use this dialog box to extract:

  • Variables in or JavaScript contexts.
  • Local variables for JavaScript 1.7, JavaScript 1.8.5, ES5, and ES6.
  • JavaScript constants.
ItemDescriptionLanguage
NameSpecify the name for the new variable.All
Variable declarationChoose 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.

    The extract local variable option is available only for JavaScript 1.7, JavaScript 1.8.5, ES5, and ES6.

JavaScript
Last modified: 20 July 2018

See Also