Telerik® JustCode™ by Progress

The Move To Resource File refactoring allows you to quickly move a string literal to a resources file.

Note

Language Support

Supported: C#, VB.NET

To move string literal to a resources file

  1. Place the caret over a string literal and Press Alt+Insert. From the pop-up menu, select Move To Resource File.

    Move To Resource File Selected
  2. Enter a name for the new resource entry and choose the resources file for the entry.

    Move To Resource File Dialog
  3. Press OK to finish or Cancel to abort the operation.
  4. If you complete the operation the string literal will be replaced.

    Move To Resource File Result
Tip

To introduce a variable you can also navigate on the main menu. Choose JustCode | Refactor | Introduce Variable, or just press Ctrl+R, Ctrl+V

Tip

You can toggle name suggestions for variable name from JustCode Options dialog.

Note

Introduce Variable works with a selected expression where the expression can be any valid variable initializer.