Extract Variable Dialog
Use this dialog to extract:
Variables in PHP 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 |
Replace all occurrences | Select this checkbox to replace all the occurrences of the selected expression (if more than one occurrence of the selected expression is found). | All |
Variable declaration | Choose to extract a (global) variable, a constant, or a local variable:
| JavaScript |
Introduce variable | The option is available when you choose to extract a part of a string literal. Choose how to introduce the extracted variable inside the literal:
| PHP |