按Ctrl + R,按Ctrl + R命令不工作 [英] Ctrl+R, Ctrl+R command not working
问题描述
我试图到Visual Studio 2008中使用<大骨节病>控制骨节病> + <大骨节病>研究骨节病>,<大骨节病>控制骨节病> + <大骨节病>研究骨节病>命令重命名变量。我在底部得到一条错误消息说,
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."
我不运行它或任何我能想到其中可能禁止文件的修改和F2命令允许重命名的情况发生。任何人都知道如何解决这个问题。
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?
编辑:?我已经安装了ReSharper的,但以前能够使用相同的设置要做到这一点,我最近迁移的计算机
I do have Resharper installed but was previously able to do this with the same setup, I recently migrated computers.
推荐答案
我可以通过以下操作来解决这个问题:
I was able to fix this by doing the following:
- 到 ReSharper的的&RARR;的选项的菜单条命令
- 选择的环保的&RARR;的键盘和放大器;菜单的
- 选择在Visual Studio的选项的键盘快捷键的
- 点击应用方案和保存的
- Go to Resharper → Options menu commmand
- Select Environment → Keyboard & Menus
- Select the Visual Studio option under Keyboard Shortcuts
- Click Apply Scheme and Save
这将导致<大骨节病>控制骨节病> + <大骨节病>研究骨节病>,<大骨节病>控制骨节病> + <大骨节病>研究骨节病>做一个重命名。 (选择在弹出那么对话框整形选项。)
This will cause Ctrl+R, Ctrl+R to do a rename. (Select ReShaper options in the dialog box that pops up then.)
不过,这让<大骨节病> F2 骨节病>不再能够瓶坯进行重命名。我能解决这个问题通过执行以下操作:
However, it made F2 no longer able to preform a rename. I was able to fix that by doing the following:
- 到 ReSharper的的&RARR;的选项的菜单命令
- 选择的环保的&RARR; 常规的
- 选择下的恢复ReSharper的键盘快捷键的
- 点击应用的或的确定的
ReSharper的2.x或IntelliJ IDEA的
- Go to ReSharper → Options menu command
- Select Environment → General
- Select the ReSharper 2.x or IntelliJ IDEA under Restore ReSharper keyboard shortcuts
- Click Apply or OK
这同时允许<大骨节病> F2 < /骨节病>和<大骨节病>控制骨节病> + <大骨节病>研究骨节病>,<大骨节病>控制骨节病> + <大骨节病>研究骨节病>命令来重命名一个变量工作。
This allows both F2 and Ctrl+R, Ctrl+R commands to work for renaming a variable.
这似乎是特定于ReSharper的安装有Visual Studio中,我不知道有什么解决办法是解决这一问题,如果没有安装ReSharper的。
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.
这篇关于按Ctrl + R,按Ctrl + R命令不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!