ReSharper 2017.2 Help

Move Resource refactoring

ReSharper | Refactor | Move
F6

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

To move resource to another resource file

  1. Set the caret at the resource usage in a code file:
    /help/img/dotnet/2017.2/Resources__Refactorings__Move_Resource_01.png
    or at the resource name in a .resx file:
    /help/img/dotnet/2017.2/Resources__Refactorings__Move_Resource_03.png
  2. In the main menu, choose ReSharper | Refactor | Move or press F6.
  3. In the Move resource dialog that appears, specify a target resource file where you want to move the resource.
    /help/img/dotnet/2017.2/Resources__Refactorings__Move_Resource_02.png
  4. Optionally, you can change resource name.
  5. Click Next to apply the refactoring.

This feature is supported in the following languages/technologies:

Language: C#
Language: VB.NET
Language: C++
Language: HTML
Language: ASP.NET
Language: Razor
Language: JavaScript
Language: TypeScript
Language: CSS
Language: XML
Language: XAML
Language: Resx
Language: Build Scripts
Language: Protobuf
Language: JSON
Feature is available Feature is available Feature is not available Feature is not available Feature is not available Feature is not available Feature is not available Feature is not available Feature is not available Feature is not available Feature is available Feature is available Feature is not available Feature is not available Feature is not available

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

Last modified: 20 September 2017

See Also