You can alter the resource name template under ReSharper | Options | Tools | Localization and remove the underscores (so that ReSharper will simply join type, member names and the value), but there's no way to alter the case at the moment. Thank you!
Andrey Serebryansky Senior Support Engineer JetBrains, Inc http://www.jetbrains.com "Develop with pleasure!"
Is it possible set somewhere that string offered by resharper as a resource name will be in camel case instead underscores?
I am not sure if that really answers the question, because that only removes the underscores from the very limiting Locatization Template that only can have upto 3 options from a set of 3 options. It still leaves underscores $Value$ by replacing SPACES with Underscores.
I want ALL underscores gone from the location. I want spaces just removed, I am not as worried about the CamelCase which would be nice, but I will settle for having control over how each of the template 3 options are converted, especially the $Value$ one. There is a lot of extra space on this settings page, it would be a great place to add some extra settings around this. :)
The template just replace spaces in string by underscores. I need to do CamelCasingInStead. Every time I am moving string to resources, I need to do it manually.
Hello Jan,
You can alter the resource name template under ReSharper | Options | Tools
| Localization and remove the underscores (so that ReSharper will simply
join type, member names and the value), but there's no way to alter the case
at the moment. Thank you!
Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
I am not sure if that really answers the question, because that only removes the underscores from the very limiting Locatization Template that only can have upto 3 options from a set of 3 options. It still leaves underscores $Value$ by replacing SPACES with Underscores.
I want ALL underscores gone from the location. I want spaces just removed, I am not as worried about the CamelCase which would be nice, but I will settle for having control over how each of the template 3 options are converted, especially the $Value$ one. There is a lot of extra space on this settings page, it would be a great place to add some extra settings around this. :)
I entirely agree.
Out compony coding style for resources
string message = "hello world"
should be changed by Reshaper to
string message = Resources.HelloWorld
The template just replace spaces in string by underscores. I need to do CamelCasingInStead. Every time I am moving string to resources, I need to do it manually.
Hello Kubes Tomas
thank you for the feedback.
A corresponding request is reported here - https://youtrack.jetbrains.com/issue/RSRP-283478.
Please feel free to comment or vote for it.
Thank you.