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 bottom saying that
"The key combination (Ctrl+R, Ctrl+R) is bound to command (&Rename...) which is not currently available."
I am not running it or anything I can think of which might prohibit modifications of the file and the F2 command allows a rename to happen. Anyone know how to fix this?
EDIT: I do have Resharper installed but was previously able to do this with the same setup, I recently migrated computers.
How to use the Ctrl+R keyboard shortcut. To use this keyboard shortcut, press and hold either Ctrl key, and while continuing to hold, press R .
Go to the Tools Menu in SSMS and Select Options. Select Keyboard section under the Environment tab. Select "Default" from the drop down under "Apply the following additional keyboard mapping scheme". Click Reset.
I was able to fix this by doing the following:
This will cause Ctrl+R, Ctrl+R to do a rename. (Select ReSharper options in the dialog box that pops up then.)
However, it made F2 no longer able to preform a rename. I was able to fix that by doing the following:
This allows both F2 and Ctrl+R, Ctrl+R commands to work for renaming a variable.
This seems to be specific to ReSharper being installed with Visual Studio, I don't know what the solution would be to fix this if ReSharper weren't installed.
You should:
It will either works or you will have a selection to do (Visual Studio or Resharper), if it is so, then choose Resharper.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With