60

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.

Jasper
  • 2,166
  • 4
  • 30
  • 50
David Vidmar
  • 3,042
  • 6
  • 29
  • 35
  • 1
    Did you solve the problem? I have the same problem + slovenian keyboard... – sventevit Aug 20 '10 at 09:22
  • 1
    Nope, there is no solution. It's only a problem with Slovenian (and probably some other) keyboard schemes. I fixed it by reassigning CTRL+F and other missing commands. – David Vidmar Aug 20 '10 at 20:30
  • I'm another developer here on Slovenian with the same broken keyboard shortcut. David, did you report this as a bug to ReSharper team? I guess that this is a bug because it's apparently related to Slovenian keyboard layout and I suppose this is a kind of a bug that's hard to spot. – Robert Koritnik Jul 23 '12 at 08:40
  • 2
    We have just encountered this problem with my colleague. We always reseted Visual Studio 2010 keyboard shortcuts to default and they applied Resharper 8 shortcuts mapping and Ctrl+F and Ctrl+Shift+F did not work. During this process, however, we had Czech keyboard activated. Then we switched to English keyboard and repeated the whole process again and this time Ctrl+F and Ctrl+Shift+F worked as expected. After this was completed the windows keyboard setting (English or Czech) did play any role any more and Ctrl+F and Ctrl+Shift+F worked as they should (Find and Replace) – honzajscz Aug 14 '13 at 13:57

8 Answers8

96

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
Be Brave Be Like Ukraine
  • 7,596
  • 3
  • 42
  • 66
  • 1
    Tnx! Didn't have to change to US keyboard though as this was already the case. – Andrew Jun 04 '13 at 13:41
  • Thanks for the tip. ReSharper seems to do some unorthodox keyboard handling and apparently fails with it. I use both hungarian and US layout and ReSharper sometimes "misses" the change between the two. In such cases, I can't type "[" (AltGr-F), instead it opens the ReSharper menu of VS. Can't repro it, though. – Dercsár Oct 08 '13 at 13:30
  • This answer really should be marked as the real answer here :-) . Second time that I needed it, second time wasted time looking at the marked answer, which is not much helpful :-) . – Martin Zikmund Jan 22 '14 at 09:13
  • 1
    Oh. this is getting worse and worse. On Win8.1, I start VS2013 in US language, but when R# loads, it switches to Hungarian. I change it back and start the mentioned process, but when I try to set the R# keys, it switches back to Hungarian for a second, and finally I got the wrong setup... Grrr... – Gaspar Nagy Mar 06 '14 at 08:48
  • 1
    Yes, that's a funny behavior. R# opens new window with default keyboard settings and halts your attempt to set it in the prefered layout. :-) Setting US keyboard as the default keyboard for the moment helps. – Lukáš Lánský Mar 10 '14 at 12:15
  • 3
    Same thing happens for the Croatian keyboard. – Ivan Golović Nov 03 '14 at 11:28
  • I have a UK layout and this suddenly started happening. This sorted out the issue.. – biso Aug 27 '15 at 15:52
  • Applies to R# 10 as well, but at least no silent language switches happening in the backround now, like what @LukášLánský mentioned before. – vinczemarton Nov 27 '15 at 13:25
  • You can see details and vote here: https://youtrack.jetbrains.com/issue/RSRP-346368 – Milan Jaros Aug 15 '17 at 11:15
  • For the last several weeks, this solution needs to be enriched for a few extra steps. Close the visual studio after every keyboard reset. Otherwise, it doesn't work for me anymore. – Jiří Herník Sep 09 '19 at 11:08
  • worked for me as wel. I have Resharper 2021.3 + VS 2022 Preview. Thanks – Samer Aamar Nov 17 '21 at 12:29
30

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.

Jasper
  • 2,166
  • 4
  • 30
  • 50
Gico
  • 1,276
  • 2
  • 15
  • 30
  • 1
    Tnx, this finally solved my problem - tried 5 different proposals from this, and other pages. You can also remove Ctrl + Shift + F if you search for: Resharper_SelectContainingDeclaration – gazdac May 15 '14 at 09:18
  • ReSharper_SelectContainingDeclaration is the other, which overrides Shift+Ctrl+F – CLS Mar 09 '22 at 12:28
1

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.

Jasper
  • 2,166
  • 4
  • 30
  • 50
toxaq
  • 6,745
  • 3
  • 46
  • 56
  • I think there was a recent VS sp/kb fix that related to the find/replace dialog moving/resizing. – Drew Noakes Jan 13 '11 at 11:59
  • In my case (which is likely similar to OP's) is that shortcut just doesn't work. If you push those buttons, nothing happens. And if you go to *Edit > Find and Replace > Find in Files* it opens as expected so it doesn't have anything to do with moved tool windows. – Robert Koritnik Jul 23 '12 at 08:42
0

Resharper - Options - Keyboard - Keyboard Scheme - None

Qhori
  • 157
  • 12
0

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

cashmere
  • 885
  • 3
  • 12
  • 37
0

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

Chashitsu
  • 122
  • 1
  • 5
-1

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

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

Jasper
  • 2,166
  • 4
  • 30
  • 50
Omer Raviv
  • 11,409
  • 5
  • 43
  • 82
  • 7
    For me, it's listed as used by "ReSharper.Resharper_GotoContainingDeclaration (CTRL + F (Global))" and "ReSharper.Resharper_GotoContainingDeclaration (CTRL + F (Text Editor))". Could you check which shortcut is this command bound to on your system. That would shed some light on things. What language settings of OS are you on? – David Vidmar May 10 '10 at 07:14
  • ReSharper.Resharper_GotoContainingDeclaration is bound to Ctrl+[ (Global) on my system. I chose VS keys for Resharper. System culture is set to Hebrew (Israel), but I don't think that this matter.. – Omer Raviv May 10 '10 at 20:07
  • 4
    I would say the keyboard is the issue here. There is not [ key on Slovenian keyboard, that character can only be type with use of Alt Gr key. Thanks for your help! – David Vidmar May 13 '10 at 19:07
  • @David: Just had the same problem. Another user with a Slovenian keyboard :) – gligoran Aug 21 '11 at 10:52
-1

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...

Igal Tabachnik
  • 31,174
  • 15
  • 92
  • 157