ReSharper 2017.1 Help

Rename Resource refactoring

ReSharper | Refactor | Renameā€¦
F2
ReSharper_Rename

You can use the Rename refactoring to quickly rename existing resources. After applying the refactoring, all resource declarations in resource files and all resource usages in code files are updated according to the new name.

To rename a resource

  1. Set the caret at the resource usage in a code file:
    /help/img/dotnet/2017.1/Resources__Refactorings__Move_Resource_01.png
    or at the resource name in a.resx file:
    /help/img/dotnet/2017.1/Resources__Refactorings__Move_Resource_03.png
  2. In the main menu, choose ReSharper | Refactor | Rename or press F2.
  3. In the Rename Resource dialog that appears, specify a new name for the resource.
  4. Click Next to apply the refactoring.
Last modified: 12 October 2017

See Also