Inline Resource refactoring
To inline resource
- Set the caret at the resource usage in a code file:
or at the resource name in a.resx file:
- In the main menu, choose or press Ctrl+Alt+N.
- In the Inline Resource dialog that appears, specify refactoring options:
- 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.
Last modified: 4 July 2017