This Refactoring is used to create resource entities from string literals. The best programming practices require each string literal to be declared in a resources file. This approach makes software localization much easier.
Available when the caret is on a string literal.
Place the caret on a string literal.
The blinking cursor shows the caret's position at which the Refactoring is available.
Dim helloWorld As String = "Hello World!"
Use the Ctrl + . or Ctrl + ~ shortcut to invoke the Code Actions Menu.
Select Extract String to Resource from the menu.
If the submenu expands, select the target RESX file or create a new one using the (Create new resource file) item.
Enter the name for the new resource and press Enter.
After execution, the Refactoring creates a new entity in the selected resource file or creates a new resource file and adds the selected string to it. After that, it replaces the string literal with the resource link and creates a Text Field on the resource name.