Rename member variable should rename property

Has anybody suggested this yet? I did a quick search and couldn't find it.
Apologies if it has already been suggested (or is already implemented :-D).

public class MyClass
private string someString;

public string SomeString {
get { return someString; }
set { someString = value; }
}
}

If I use ReSharper to rename "someString" --> "someOtherString", it would
be nice if ReSharper also asked if the "SomeString" property should be renamed
to "SomeOtherString" (similar to the way it asks if you want to rename the
.cs file when you rename a class).

/gerrod




3 comments
Comment actions Permalink

Hello Gerrod,

this is a quite good feature, could you please submit it to the tracker?
I believe
it will be implemented.

Thanks.

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

Has anybody suggested this yet? I did a quick search and couldn't find
it. Apologies if it has already been suggested (or is already
implemented :-D).

public class MyClass
private string someString;
public string SomeString {
get { return someString; }
set { someString = value; }
}
}
If I use ReSharper to rename "someString" --> "someOtherString", it
would be nice if ReSharper also asked if the "SomeString" property
should be renamed to "SomeOtherString" (similar to the way it asks if
you want to rename the .cs file when you rename a class).

/gerrod



0
Comment actions Permalink

Done.

http://www.intellij.net/tracker/resharper/viewSCR?publicId=11294

Hello Gerrod,

this is a quite good feature, could you please submit it to the
tracker?
I believe
it will be implemented.
Thanks.

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

>> Has anybody suggested this yet? I did a quick search and couldn't
>> find it. Apologies if it has already been suggested (or is already
>> implemented :-D).
>>
>> public class MyClass
>> private string someString;
>> public string SomeString {
>> get { return someString; }
>> set { someString = value; }
>> }
>> }
>> If I use ReSharper to rename "someString" --> "someOtherString", it
>> would be nice if ReSharper also asked if the "SomeString" property
>> should be renamed to "SomeOtherString" (similar to the way it asks if
>> you want to rename the .cs file when you rename a class).
>> /gerrod
>>


0
Comment actions Permalink

And of course the reverse should work as well (rename property, renames the
field its based on if the original names were the same, save for case or
prefix).

"Dmitry Shaporenkov (JetBrains)" <dsha@jetbrains.com> wrote in message
news:c8a894d98e8e68c7a2b6581406f6@news.intellij.net...

Hello Gerrod,

>

this is a quite good feature, could you please submit it to the tracker? I
believe
it will be implemented.

>

Thanks.

>

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

>
>> Has anybody suggested this yet? I did a quick search and couldn't find
>> it. Apologies if it has already been suggested (or is already
>> implemented :-D).
>>
>> public class MyClass
>> private string someString;
>> public string SomeString {
>> get { return someString; }
>> set { someString = value; }
>> }
>> }
>> If I use ReSharper to rename "someString" --> "someOtherString", it
>> would be nice if ReSharper also asked if the "SomeString" property
>> should be renamed to "SomeOtherString" (similar to the way it asks if
>> you want to rename the .cs file when you rename a class).
>>
>> /gerrod
>>
>



0

Please sign in to leave a comment.