Disable renaming related parameters

Is there an option to disable searching/renaming related parameters when
renaming parameters in an overriden or overloaded method? The primary reason
this that we want to limit the scope of the changes at this point, so we
don't want a change in one class to bubble through every class that inherits
from the same interface or abstract class. A secondary reason is that we
have a little over 100 classes that inherit from a common abstract class so
it takes ReSharper a minute or so to crawl through the inheritance hierarchy
on every rename following by a similarly long wait while Visual Studio opens
all the changed classes.

I seem to remember there used to be a checkbox to do this in the Rename
dialog in ReSharper 3 or 4.

1 comment

Hello Greg,

When renaming a parameter of an overriden method, the second step of the
rename refactoring should be 'Rename related symbols'. On that page you can
turn off 'Rename related symbols' option in order to avoid renaming parameters
in other overrides. I've checked that and it works fine for me with ReSharper
5.1.3. Thank you!

Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Is there an option to disable searching/renaming related parameters
when renaming parameters in an overriden or overloaded method? The
primary reason this that we want to limit the scope of the changes at
this point, so we don't want a change in one class to bubble through
every class that inherits from the same interface or abstract class. A
secondary reason is that we have a little over 100 classes that
inherit from a common abstract class so it takes ReSharper a minute or
so to crawl through the inheritance hierarchy on every rename
following by a similarly long wait while Visual Studio opens all the
changed classes.

I seem to remember there used to be a checkbox to do this in the
Rename dialog in ReSharper 3 or 4.



0

Please sign in to leave a comment.