ReSharper | Refactor | Inline
The Inline Resource refactoring substitutes resource usages with the original string and optionally deletes the corresponding resource entries from resource files.
If a string literal is too long, press Enter anywhere within the string and ReSharper will automatically put the right part of it to the next line and insert the + sign. Delete the + and the string parts will be concatenated.
Set the caret at the resource usage in a code file:
or at the resource name in a .resx file:
- On the main menu, choose ReSharper | Refactor | Inline or press Ctrl+Alt+NCtrl+R,I.
Inline Resource dialog box that appears, specify refactoring
- Inline all usages: if selected, replaces all resource usages in the project with the original string. If deselected, replaces only the resource usage where you invoked this refactoring. Note that this option works only if you invoked the refactoring from the code file.
- Remove inlined resource declaration: if selected, removes resource declaration from all related resource files. If deselected, leaves declarations intact.
- Click Next to apply the refactoring.