ReSharper breaks keyboard shortcuts for "Find" and "Find in Files"

Visual StudioKeyboard ShortcutsResharper

Visual Studio Problem Overview


I have been using ReSharper for some time and since I can remember every time I install Resharper, it's default keyboard shortcuts override Visual Studio's Ctrl + F and Ctrl + Shift + F for "Find" and "File in Files". It happend with R#3, 4, 5 in VS 2005, 2008 and 2010.

I don't have any ideas why would that be a good idea, but if this would bug it would be fixed by now.

Does this even happen to others? I checked around our company and I'm not alone.

Visual Studio Solutions


Solution 1 - Visual Studio

I have the same problem with Serbian keyboard - which is the same as Slovenian. Someone mentioned that the shortcut for the GoToContainingDeclaration feature that overrides 'Find' is Ctrl+[. Well, guess what - on our keyboards, [ is typed as AltGr+F. Most likely that is why Resharper assigns the command that would normally go to Ctrl+[ to Ctrl+F.

Now the workaround (if not the solution):

  • Reset the VS keyboard shortcuts (Tools>Options>Keyboard)
  • Temporarily set US keyboard
  • Set Resharper keyboard shortcuts (Resharper>Options>Keyboard&Menus)
  • Go back to your keyboard of choice

Solution 2 - Visual Studio

as @cashmere said: Go to Open Tools->Options->Environment->Keyboard.

In Show Commands containing enter: GoToContainingDeclaration

Under shortcuts for the selected command you will see Ctrl + F. Now you may change the shortcut or remove it.

Now you just need to check if edit.find command has assigned Ctrl + F shortcut. Now it should work. At least it did for me.

Solution 3 - Visual Studio

Yep, this has just happened to me after a reinstall. I was using Vs2k8. Realised I didn't have resharper 4.5 installed. Closed VS, ran install, selected the same settings as I had been using for the last 8 months (VS settings) and then restarted VS. Now no Ctrl + F or Ctrl + Shift + F! Very odd.

UPDATE: Well I found out what it was. The Find box had been relocated behind the Windows taskbar. I had to move the taskbar to the side of the screen, so that I could drag the find box back into the usable window space. No idea if this was a Resharper caused change but there was a direct correlation to the install.

Solution 4 - Visual Studio

Open Tools->Options->Environment->Keyboard and Press Reset for default keyboard shortcuts

Solution 5 - Visual Studio

Resharper - Options - Keyboard - Keyboard Scheme - None

Solution 6 - Visual Studio

Based on @Gico answer. Problem is caused by GoToContainingDeclaration resharper feature.

  1. Open VS Environment -> Keyboard
  2. into field 'Show commands containing' type GoToContainingDeclaration
  3. click on button Remove

This solved problem for me (I am using VS 2017).

enter image description here

Solution 7 - Visual Studio

No, never happened to me (I'm using Resharper 5).

If you check ReSharper's keymaps, you'll Ctrl + F is not listed.

Solution 8 - Visual Studio

I've been using ReSharper since v2.5, and this never happened to me as well. Perhaps sometime ago the keys got mixed up. Try to reset your key bindings to default, and after that apply one of the ReSharper key schemes (VS or IDEA).

If this still happens, check maybe if your keyboard layout is that of US, or maybe something else...

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionDavid VidmarView Question on Stackoverflow
Solution 1 - Visual StudioAleksandar VasićView Answer on Stackoverflow
Solution 2 - Visual StudioGicoView Answer on Stackoverflow
Solution 3 - Visual StudiotoxaqView Answer on Stackoverflow
Solution 4 - Visual StudiocashmereView Answer on Stackoverflow
Solution 5 - Visual StudioQhoriView Answer on Stackoverflow
Solution 6 - Visual StudioChashitsuView Answer on Stackoverflow
Solution 7 - Visual StudioOmer RavivView Answer on Stackoverflow
Solution 8 - Visual StudioIgal TabachnikView Answer on Stackoverflow