suppose we have
is it possible in Code to rename
bar, and also have it change all references of
bar ? (this is different from a global sed because if a
bar does not refer to this particular
foo, we don't want to rename it)
i think i remember there being a "rename symbol" ability?
There is, press F2.
I must be doing something wrong. I have tried F2, Ctrl-F2, ctrl-shift-p Refactor -- and in all cases, it's only renaming the one in the trait, but not the ones in the impl traits, or the actual calls
Do I need something more than rust-analyzer ?
You didn't mention traits :-). That's https://github.com/rust-analyzer/rust-analyzer/issues/4201.