No warning when renaming variable to already existing name

When I rename a variable I would prefer to get a warning if the name typed is already present in the scope.

int anInteger; // renaming this to aDbl or aChar should produce a warning during renaming
double aDbl;
char aChar;

Is this a setting or is it just something I have to manually check for in my code?

0
8 comments
Avatar
Permanently deleted user

You should get a warning when you proceed with the rename operation.

0
Avatar
Permanently deleted user

But I don't get it. Did same op in CLion and it complained as should. But not here.

Freshly installed as well.

0
Avatar
Permanently deleted user

Could you send us a sample project where this happens? Doesn't happen for me on your snippet. Is this in 2020.3 or another release?

0
Avatar
Permanently deleted user

I installed R# plugin in VS because VS let me rename vars to already existing.
Could VS have this influence on the R# plugin?
Anyway I am looking at 2 weeks work wasted bc of refactoring gone bad 🙄
Plz rescue me 😭

0
Avatar
Permanently deleted user

Sure. I just started a fresh VS win project and still same behaviour. Where do I send the code?

I'm running:
VS2019 latest

JetBrains ReSharper 2020.3.4 Build 203.0.20210316.132251 built on 2021-03-16
ReSharper C++ 2020.3.20210316.134922

0
Avatar
Permanently deleted user

Same behaviour in console project as well.

0
Avatar
Permanently deleted user

Please attach it to https://youtrack.jetbrains.com/issue/RSCPP-31792. If you can share a screencast of what happens on your machine as well that would be great.

0
Avatar
Permanently deleted user

Posted vid to issue

0

Please sign in to leave a comment.