Some features described here are available in Ultimate edition only.
Refactor | Extract Variable
Refactor | Extract Variable
Generally, this dialog is used to extract new variables. Depending on the language, there
may be additional options, for example:
- In Java, you can declare the new variable final.
The following is available only in the Ultimate edition of IntelliJ IDEA
- In JavaScript, you can select to extract a (global) variable or a constant.
For JavaScript 1.7 or a later version, there is also an option of extracting a local variable.
- In ActionScript, you can choose to extract a constant rather than a variable, and specify the variable type.