Extract refactorings are performed for the various expressions and blocks of code, including strings.
Currently Extract refactoring on substrings is not supported.
Refactoring is limited to complete expressions and blocks of code.
The current release will extract all occurenes (within the current scope) of the selected expression and replace with a variable.
There are a two options to invoke the extract variable command, they are as follows:
Option 1 (Command Palette)
Option 2 (Quick Fix)
Launching the Quick Fix command from the Command Palette
Launching the Quick Fix command using the keyboard shortcut
Option 3 (Keyboard Shortcut)
Extract refactorings are performed for the various expressions and blocks of code, including strings.
Currently Extract refactoring on substrings is not supported.
Refactoring is limited to complete expressions and blocks of code.
The current release will extract all occurenes (within the current scope) of the selected expression and replace with a variable.
There are a two options to invoke the extract variable command, they are as follows:
Option 1 (Command Palette)
Option 2 (Quick Fix)
Launching the Quick Fix command from the Command Palette
Launching the Quick Fix command using the keyboard shortcut
Option 3 (Keyboard Shortcut)