Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 756
David Vidmar Avatar asked May 07 '10 13:05

David Vidmar


People also ask

How do I change the shortcut key in ReSharper?

When you start Visual Studio for the first time after installing ReSharper, the Keyboard Scheme dialog opens, where you can choose the default shortcut scheme. You can change the selected scheme later by using the corresponding selector on the Environment | Keyboard page of ReSharper options ( Alt+R, O ).

What is Ctrl D in Intellij?

I use Ctrl+D to add to selection (discrete multiple select) the next occurrence of the string (or substring) highlighted. And to skip adding next immediate selection to selection but the one after it, I use Ctrl+K, Ctrl+D.


2 Answers

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
like image 146
Aleksandar Vasić Avatar answered Sep 20 '22 22:09

Aleksandar Vasić


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.

like image 29
Gico Avatar answered Sep 19 '22 22:09

Gico