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?

8 comments
Comment actions Permalink

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

0
Comment actions Permalink

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

Freshly installed as well.

0
Comment actions Permalink

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
Comment actions Permalink

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
Comment actions Permalink

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
Comment actions Permalink

Same behaviour in console project as well.

0
Comment actions Permalink

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
Comment actions Permalink

Posted vid to issue

0

Please sign in to leave a comment.