AppCode 2018.1 Help

Extract Variable Dialog for Sass

Refactor | Extract Variable

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




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).

Last modified: 19 September 2019