ReSharper 8.0 Web Help

ReSharper | Refactor | Move
F6Ctrl+R,O

If your project contains multiple resource (.resx) files, you can easily move existing resources from one resource file to another with the Move refactoring.

To move resource to another resource file
  1. Set the caret at the resource usage in a code file:
    Resources__Refactorings__Move_Resource_01
    or at the resource name in a .resx file:
    Resources__Refactorings__Move_Resource_03
  2. On the main menu, choose ReSharper | Refactor | Move or press F6Ctrl+R,O.
  3. In the Move resource dialog box that appears, specify a target resource file where you want to move the resource.
    Resources__Refactorings__Move_Resource_02
  4. Optionally, you can change resource name.
  5. Click Next to apply the refactoring.

Note

If there is only one .resx file in the project, this refactoring is unavailable.


This feature is supported in the following languages/technologies:

C# VB.NET HTML ASPX Razor JavaScript TypeScript CSS XML XAML RESX Build Scripts
feature_available feature_available feature_available feature_available

Tip

The instructions and examples given here address the use of the feature in C#. For details specific to other languages, see the corresponding topics in the ReSharper by Language section.