Rename adds work

I have a field named "_AnnotatableUi" in my code that I want to rename to
"_AnnotableUI". When I press F2, however, the dialog shows the renamed class
as "_annotableUi", so instead of making one edit to capitalize the "i" I
now have to make two edits to capitalize the first "a".

Is this something I can control? I may have changed a setting without realizing
its effect.

Also, I see the red warning icon in the rename dialog warning me "New name
must differ from original name". Since ReSharper already changed the name,
isn't this warning a logic error because the (unwanted) change it made does
differ from the original?


1 comment
Comment actions Permalink

This looks like another case of this issue:

http://www.jetbrains.net/jira/browse/RSRP-13656

Also, I see the red warning icon in the rename dialog warning me "New
name must differ from original name". Since ReSharper already changed
the name, isn't this warning a logic error because the (unwanted)
change it made does differ from the original?


I could not reproduce this part. Is it reproducable for you?

Valentin Kipiatkov
CTO and Chief Scientist
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

I have a field named "_AnnotatableUi" in my code that I want to rename
to "_AnnotableUI". When I press F2, however, the dialog shows the
renamed class as "_annotableUi", so instead of making one edit to
capitalize the "i" I now have to make two edits to capitalize the
first "a".

Is this something I can control? I may have changed a setting without
realizing its effect.

Also, I see the red warning icon in the rename dialog warning me "New
name must differ from original name". Since ReSharper already changed
the name, isn't this warning a logic error because the (unwanted)
change it made does differ from the original?



0

Please sign in to leave a comment.