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?
Please sign in to leave a comment.
You should get a warning when you proceed with the rename operation.
But I don't get it. Did same op in CLion and it complained as should. But not here.
Freshly installed as well.
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?
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 😭
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
Same behaviour in console project as well.
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.
Posted vid to issue