Just something I'm curious about. Here's what I do:
I have a class with a member(type
) who I want to rename to alertType
, for example.
I right click the member, Refactor->Rename..
and enter the new name.
type
, or many html tags.My question is, is there a way to change the default rename behaviour to only include the Field to be renamed
and References in code to parameter, method
refactorings? I don't think I would ever want the dynamic and comment/string replacements- I'm just trying to quickly rename a single variable.
On the field you want rename, press ShiftF6 and the inline rename refactoring will start. Now press ShiftF6 again, and the rename refactoring dialog will appear. Here you have 2 checkbox settings:
search in comments and strings
and search for text occurrences
, disable those and it should fix your problem.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With