Converts the string literal containing a variable or class member name to the nameof expression with the corresponding variable/member as an argument. Using nameof helps keep your code valid when renaming definitions, because the majority of automatic renaming tools do not search for variable/member names within string literals.
Available when the caret is on a string literal containing a variable/member name.
Place the caret on a string literal containing a variable or member name.
The blinking cursor shows the caret's position at which the Refactoring is available.