PhpStorm 7.1.0 Web Help

Refactor | Extract Variable

Use this dialog box to replace a SASS expression with a variable.

Item Description
Name Specify the name for the new variable.
Place for declaration Select the place in the source code, where the new variable will be declared. The declaration can be global (a variable is declared in the beginning of a SASS file and is available throughout the whole file), or local (a variable is declared immediately before use, and is available in the current block only).
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).

See Also

Procedures:

Web Resources: