The Move To Resource File refactoring allows you to quickly move a string literal to a resources file.
Supported: C#, VB.NET
To move string literal to a resources file
Place the caret over a string literal and Press Alt+Insert. From the pop-up menu, select Move To Resource File.
Enter a name for the new resource entry and choose the resources file for the entry.
- Press OK to finish or Cancel to abort the operation.
If you complete the operation the string literal will be replaced.
To introduce a variable you can also navigate on the main menu. Choose JustCode | Refactor | Introduce Variable, or just press Ctrl+R, Ctrl+V
You can toggle name suggestions for variable name from JustCode Options dialog.
Introduce Variable works with a selected expression where the expression can be any valid variable initializer.