Camel casing when using Ctrl+R, R to rename.

If I have a parameter in a method like FileType I can use RS Ctrl+R, R to rename it. When I do, it automatically displays FileType as fileType which is nice. I then do nothing more than press return to accept the name and the code is refactored.

Where I have a problem is if if use Ctrl+R, R in the body of the method. If I have a variable called MyVar and I rename it RS displays an edit box around the variable. I then have to use the right arrow to go to the beginning, delete the first character and then enter "m" and return. That seems a lot of keyboard work just to convert MyVar to myVar. I've got a large number of source files that I'm casing and refactoring.

Is there anything I can do or configure so that when I use Ctrl+R, R in the body of a method RS can assume the default action like it does for a parameter? That would save me a lot of time.

2 comments
Comment actions Permalink

Hello Peter,

Right now there is no way, but we are preparing something to fix the naming
problems for you. Faster.

Sincerely,
Ilya Ryzhenkov

JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


IR> If I have a parameter in a method like FileType I can use RS Ctrl+R,
IR> R to rename it. When I do, it automatically displays FileType as
IR> fileType which is nice. I then do nothing more than press return to
IR> accept the name and the code is refactored.
IR>
IR> Where I have a problem is if if use Ctrl+R, R in the body of the
IR> method. If I have a variable called MyVar and I rename it RS
IR> displays an edit box around the variable. I then have to use the
IR> right arrow to go to the beginning, delete the first character and
IR> then enter "m" and return. That seems a lot of keyboard work just to
IR> convert MyVar to myVar. I've got a large number of source files that
IR> I'm casing and refactoring.
IR>
IR> Is there anything I can do or configure so that when I use Ctrl+R, R
IR> in the body of a method RS can assume the default action like it
IR> does for a parameter? That would save me a lot of time.
IR>


0
Comment actions Permalink

Thanks Ilya. It will be a very useful enhancement.

Sadly, I have no choice but to keep refactoring all the source files. Perhaps if I send you the source, you could give five of your fellow developers thirty source files each and they could do it for me? ;)

0

Please sign in to leave a comment.