Some features described here are available in Ultimate edition only.
Refactor | Extract Variable
Generally, this dialog is used to extract new variables. Depending on the language, there
may be additional options, for example:
- In ActionScript, you can choose to extract a constant rather than a variable, and specify the variable type.
||Select the type of the new variable.
||Specify the name for the new variable.
|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).
||Select this option to declare the new variable final.
||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.
||Select this option to extract a constant rather than a variable.