ReSharper Web Help

To delete resource safely
  1. Position the caret at the name of resource in code file:
    Safe_Delete
    or in .resx file:
    Safe Delete
  2. On the main menu, choose ReSharper | Refactor | Safe Delete or press Alt+Delete.
    • If there are no usages of this resource in code files, the refactoring is applied and resource declarations are removed from all .resx files.
    • If there are usages of this resource in code files, the Safe Delete Resource dialog box opens:
      Safe_Delete
  3. Click Next to apply the refactoring.

     Note

    If ReSharper finds usages of resource in code files, but you still apply the Safe Delete refactoring, pay attention, that the resource declaration is deleted from .resx files, while resource usages are left intact.

See Also

Procedures