Ctrl+R, Ctrl+R command not working

后端 未结 16 945
逝去的感伤
逝去的感伤 2021-02-01 00:08

I\'m attempting to use the Ctrl+R, Ctrl+R command within Visual Studio 2008 to rename a variable. I get an error message at the bott

相关标签:
16条回答
  • 2021-02-01 00:51

    I'm guessing very few people will be in my situation but FWIW I was in this situation too where Refactor.Rename (Ctrl+R,Ctrl+R) was NOT working in Visual Studio 2019/Win 10, after reboots/restarts plus I did not have Resharper installed. In my case Refactor.Rename wasn't working because my project was in FOLDER mode not SOLUTION mode (OMFG). Soon as I used the solution tool to "Switch Views" and went into SOLUTION mode Refactor.Rename started working again. In hindsight this makes sense of course but some kind of error message/warning would have been nice to help me realize what the issue was!

    0 讨论(0)
  • 2021-02-01 00:56

    This is usually the shortcut used by Resharper. Is there any chance Resharper is not running?

    Alternatively, you can change the name, hit Ctrl+. and then use Rename.

    0 讨论(0)
  • 2021-02-01 00:58

    resharper has multiple default shortcut bindings that is chosen the first time you start visual studio after instalation. My guess is you picked a different one this time.

    0 讨论(0)
  • 2021-02-01 00:58

    All the answers above are well and good but this error also comes up in one more instance.


    You start debugging your test script written for the project , the project stops at breakpoint .

    If at this point , you try any operation on code , you will get the error similar to : "The key combination (Ctrl+R, Ctrl+R) is bound to command (&Rename...) which is not currently available."

    0 讨论(0)
提交回复
热议问题