Move to Resource: Custom replacement variable?
When I use Move to Resource in the refactor menu, it replaces my string with a variable that represents that string. Is there any way to change how it does this? For example if I replace the string "Hello There", the current refactoring turns it into `Resources.sHelloThere`. I want it to change it to be `StringHelpers.FormatStringFromResources([productnamehere].GetString("sHelloThere"));` (where "productnamehere" is a static class that contains my clients name and I cannot disclose this name so just assume it is a static class name)
Is this possible?
Thanks!
Please sign in to leave a comment.
I think you can solve your problem with "Search wit pattern". You will find it in Resharpers Find menu.
Regards
Andreas
Hello!
Thank you for contacting us.
Please try to configure ReSharper | Options | Code Editing | Localization, hope it helps.
Thank you.