ReSharper key bindings problem

2020-05-12 11:41发布

问题:

I use: Visual Studio 2010 Ultimate, Resharer 6.

In ReSharper's options i choose Visual Studio keyboard sheme and click Apply Sheme:

After that some shortcuts are not assigned, such as: Go to Declaration, Go to implementation, Find Usages, Complete symbol, etc:

Try

  • Tools -> Options, Environment -> Keyboard -> Reset
  • Import and Export Settings, re-import C# developer settings
  • devenv /reset

Nothing helped.

Configure shortcuts manually is not desirable. Help, please.

回答1:

This is a known issue that affects all ReSharper shortcuts that include F12 after switching from IntelliJ keymap to VS keymap. It's documented in this bug report that you're free to watch and vote for. As far as I'm aware, the only workaround would be to reassign the broken shortcuts manually through Tools > Options > Keyboard.



回答2:

This one worked for me 100% after trying a bunch of other things:

  1. Go to Tools -> Options -> Environment -> Keyboard -> Press the (RESET) button
  2. Go to ReSharper - > Options -> Keyboard & Menus -> Select the "Visual Studio" scheme -> Press "Apply Scheme"
  3. Press "Save"
  4. Press "CTRL-T". Since this shortcut is mapped in both VS and Resharper, you will be presented with the "Shortcut Conflict"-window. Here you select "Use ReSharper (Ultimate) command" and make sure to check the box "Apply to all ReSharper (Ultimate) shortscuts".

Voila!



回答3:

Hpersw's solution works. in VS -> Tools -> Import & Export Settings -> Reset all settings and press finish. This should give you the shortcuts back



回答4:

After wrestling with this for half a day and trying all of the options above, I finally found the magic setting that fixed MY problems: I UNSELECTED "Hide overriden Visual Studio Items" in Options/Keyboard and Menus"



回答5:

In VS go to Tools -> Options -> Environment -> Keyboard -> Apply the following keyboard mapping schema: [Default]



回答6:

The easiest way to solve this problem is :

Go to: ReSharper -> Manage Options -> Reset All Settings

These steps gonna solve your shortcuts (key bindings) issues.

You DO NOT have to constantly perform the following actions:

1) Go to Tools -> Options -> Environment -> Keyboard -> Press the (RESET) button

2) Go to ReSharper - > Options -> Keyboard & Menus -> Select the "Visual Studio" scheme -> Press "Apply Scheme"


回答7:

I know this is a little old, but I just thought I'd share my epiphany... It seems that with Resharper 7x and VS2010 (probably anything later too), is best set when you op for the selecting the "Text Editor" as the settings to update under Options->KeyBoard. So, what I would recommend if you like some of Resharper features, use this site to get the shortcuts Resharper Shortcuts

Then set them accordingly with Text Editor selected as the settings to update. Global does NOT seem to work consistently.

FYI- Text Editor works for C#, CSS and javascript. Not sure about other languages within VS.



回答8:

Taken from the documentation on Configuring Keyboard Shortcuts:

To switch between two available keyboard schemes or restore the default state of your currently selected scheme

  1. On the main menu, choose ReSharper | Options.
  2. Select Environment | Visual Studio Integration.
  3. In the Visual Studio Integration tab, select Visual Studio, ReSharper 2.x or IntelliJ IDEA, or None, and click Apply Scheme. If you selected None, you can define an arbitrary set of custom keyboard shortcuts in Visual Studio's native Options menu (Tools | Options | Environment | Keyboard) - see To configure keyboard shortcuts above.

Also, here's some documentation on how to resolve keyboard shortcut conflicts with Resharper



回答9:

Doing "Reset All Settings" in VS Import&Export usually helps with restoring shortcuts. But it will, eh, reset all VS settings.