IntelliJ IDEA 11.1 Web Help

10.5+
Some features described here are available in Ultimate edition only.

Refactor | Introduce Variable

Ctrl+Alt+VCommand Alt V

Refactor | Introduce Variable

Ctrl+Alt+VCommand Alt V

Generally, this dialog is used to introduce new variables. Depending on the language, there may be additional options, for example:

The following is available only in the Ultimate edition of IntelliJ IDEA

Item Description Language
10.5+Type Select the type of the new variable. ActionScript
Name Specify the name for the new variable. All
Replace all occurrences Select this option to replace all the occurrences of the selected expression (if more than one occurrence of the selected expression is found). All
Declare final Select this option to declare the new variable final. Java
Var kind Choose to introduce a (global) variable, a constant, or a local variable:
  • Introduce var - select this option to introduce a global variable.
  • Introduce constant - select this option to introduce a constant.
  • Introduce local variable - select this option to introduce a local variable.

    Note

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

JavaScript
Make constant Select this option to introduce a constant rather than a variable. ActionScript

See Also

Procedures:

External Links:

Web Resources: