WebStorm 2025.2 Help

Extract Variable dialog

Use this dialog to extract:

  • Variables in JavaScript or JavaScript contexts.

  • Local variables for JavaScript 1.7, JavaScript 1.8.5, ES5, and ES6.

  • JavaScript constants.

Item

Description

Language

Name

Specify the name for the new variable.

All

Choose how to extract the variable:

  • var – extract a global variable.

  • const – extract a constant.

  • let – extract a local variable.

    The let option is available only for JavaScript 1.7, JavaScript 1.8.5, ES5, and ES6.

JavaScript

02 September 2025