WebStorm 9.0.2 Web Help

Extract Variable Dialog

Refactor | Extract Variable
Ctrl+Alt+V

Use this dialog box to extract:

  • Variables in language or JavaScript contexts.
  • Local variables for JavaScript 1.7 and higher.
  • JavaScript constants.
Item Description Language
Name Specify the name for the new variable. All
Var kind Choose 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 or a later version.

JavaScript

See Also

Last modified: 11 December 2014
comments powered by Disqus