Move to resource camel syntax

Is it possible set somewhere that string offered by resharper as a resource name will be in camel case instead underscores?

1
4 comments
Avatar
Permanently deleted user

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!"

Is it possible set somewhere that string offered by resharper as a
resource name will be in camel case instead underscores?

---
Original message URL:
http://devnet.jetbrains.net/message/5284651#5284651



0
Avatar
Permanently deleted user

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. :)

1

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.

0

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.

0

Please sign in to leave a comment.