260

I have Visual Studio 2012 + Resharper 7.1.1000.900 + StyleCop 4.7.44 installed.

The problem is that no shortcuts are active since Resharper was installed.

For example: I can still rename via 'Refactor > Rename'. But shorcut Ctrl+R does nothing.

I tried setting Resharper keyboard scheme to 'Visual Studio' in 'Resharper > Options > Environment > Keyboard & Menus'

Is there any other way to activate shortcuts? Thanks.

Julia Meshcheryakova
  • 3,162
  • 3
  • 22
  • 42
  • 2
    No shortcuts? Not even Ctrl+C and Ctrl+V? – Kendall Frey May 03 '13 at 17:00
  • Well, that's somehow a feature of Resharper, replacing Visual Studio shortcuts. It should have asked you politely though. Maybe you missed the dialog boxes asking for permissions or options. You should uninstall it, repair Visual Studio and reinstall. – Simon Mourier May 03 '13 at 17:08
  • I believe that the VS studio shortcut is 'Ctrl+R,R'. i.e. Hold Ctrl + R (Double press). Does this work? – Patrick D'Souza May 03 '13 at 17:13
  • 2
    Ctrl+C and Ctrl+V are working. Ctrl+R,R - causes the message 'The key combination (Ctrl+R, Ctrl+R) is not a command'. I've uninstalled both Resharper and VS. Then installed both again. (before the message was 'The key combination (Ctrl+R, Ctrl+R) is bound to command (.Resharper.Rename) which is not currently available.') – Julia Meshcheryakova May 04 '13 at 13:45
  • Check out your *Resharper license*, it can work incorrectly if it's expired or unlinked. – Ivan Yurchenko Aug 14 '20 at 11:33

23 Answers23

505

I would first try resetting all Visual Studio settings (Tools > Import and Export Settings > Reset all settings), then go to the Resharper > Options > Keyboard & Menus and re-apply the keyboard shortcut scheme.

I had to do something similar once.

Nick Spreitzer
  • 10,242
  • 4
  • 35
  • 58
  • had this problem after a VS update. Reset VS to standard then re-applied Resharper override scheme. All good again. Thanks – phil soady Aug 23 '13 at 07:41
  • 9
    @Divine: You down voted me because my suggestion for a problem you don't have didn't help you? Yeah, that makes sense. – Nick Spreitzer Jul 18 '14 at 15:32
  • 31
    This is going to reset *all* your VS settings, right? Not just the keyboard shortcuts. Because that's kind of bad. – DCShannon Aug 22 '14 at 19:02
  • 6
    @DCShannon Yep. Desperate situations call for desperate measures. :) You can always export your settings before resetting them. – Nick Spreitzer Aug 23 '14 at 19:42
  • 26
    The concern in the comment from @DCShannon is valid. This will reset **all** your VS settings, which includes many things beyond just the keyboard mappings. A better option is to reset just your keyboard mapping scheme at **Tools > Options > Environment > Keyboard** – BitMask777 Dec 05 '16 at 19:41
  • @BitMask777 Did you actually have this problem and did that actually fix it? Or are you just theorizing? Because if that does actually work, I agree, that's a better approach. – Nick Spreitzer Dec 05 '16 at 20:27
  • This worked for me, but one thing is Resharper sets keys based on context, so for example ctrl-alt-p I wanted for attached process, and while the global was set correctly, Resharper mapped the key combo to something else IF in the text editor, so I had to manually change that one – Mike Mar 27 '18 at 12:39
  • 3
    While this is a solution, the first step (resetting all settings) is a bit drastic and will be unnecessary for many users. See the more conservative suggestion by ND72--that advice worked for me or more than one workstation, and it affects only ReSharper settings and not Visual Studio settings. – Jazimov Nov 05 '18 at 16:58
  • If this didn't work for you check the **Resharper License**, it might fail silently if something's wrong with the licensing. – Ivan Yurchenko Aug 03 '20 at 10:28
  • DO NOT DO THIS, THIS IS GOING TO RUIN YOUR PROJECT. All settings are going to gone, including any hidden ones about building etc. If you have no idea about keyboard settings, probably you won't be about to fix the build failures after the full reset. Very bad idea, close to just run `rm -rf /`. – River Oct 05 '22 at 15:15
173

These steps worked for me:

  1. Setting to Resharper / Options / KeyBoard & Menus / None / Apply
  2. Resharper / Options / KeyBoard & Menus / Set to Visual Studio / Apply and Save
Julia Meshcheryakova
  • 3,162
  • 3
  • 22
  • 42
ND72
  • 2,037
  • 1
  • 15
  • 14
  • 26
    Worked for me. I'd suggest trying this solution before blowing away ALL setting as suggested in the accepted answer. – brntsllvn Sep 02 '16 at 17:40
  • 2
    This worked for me too, with VS 2017 and ReSharper 2017.1. I definitely recommend to try this out before using the solution in the accepted answer, which has unwanted side effects. – ZbynekZ Sep 12 '17 at 13:56
  • 1
    This worked for me for Resharper 2017.3.2 and VS 2015 – Sanket Sonavane Feb 14 '18 at 10:18
  • 1
    This worked for me in VS 2019 Pro with ReSharper 2018.3.4. – Ryan Apr 10 '19 at 19:11
  • This answer all the way! – ErpaDerp Apr 16 '19 at 22:50
  • 1
    Still valid all the way in 2021. VS 2019 Pro, R# 2019.2. I exited and re-ran VisualStudio between steps to play it safe. – kenswdev Jan 15 '21 at 16:21
  • For anyone using VS2022 / R#2022.3 the path is Extensions > ReSharper > Options > Keyboard > Shortcut Scheme, but after that, the steps worked perfectly for me. – Artie Leech Feb 06 '23 at 15:57
  • I have VS2022 with resharper installed but disabled and the shortcuts were not working. I re-enabled resharper, i put keyboard schema to none, re-disabled it and shortcuts in VS are working fine now! – Dimitris Thomas Aug 15 '23 at 15:07
21

I had the same problem and reset didn't fix it. Then the resharper support helped me. Solution was very simple! I'm from Russia and usually my default keyboard is Russian. In control panel | language settings | change keyboard - I changed default keyboard to English. Then reapply settings in VS: Resharper|Options|Keyboard&Menus - apply R# scheme. And the problem was fixed :)

Yuri Fedoseev
  • 539
  • 5
  • 7
  • Indeed, I have Dutch & English enabled. When I applied the R# theme, the keyboard switched from Dutch to English. I switched back to Dutch before hitting the Save button. This did it for me. – Pieter Heemeryck Jun 10 '17 at 16:17
12

I had a very difficult time getting this working one under VS2015 one day. After the initial install everything was working, but I come in this morning and my keyboard shortcuts don't work. Going through Resharper's Environment > Keyboard & Menus didn't work; reinstalling Resharper didn't work. Even deleting every configuration from Resharper's AppData folder didn't work.

So what did work? Going to Visual Studio's Tools > Options > Environment > Keyboard and clicking Reset. After I did that, then Resharper's schemes would take.

Adam Skinner
  • 877
  • 1
  • 8
  • 10
12

Without resetting Visual Studio settings :

I found simply

  • ReSharper > Options > Keyboards
  • Apply Scheme button
  • Save button

Brought back my lost ReSharper keyboard commands without messing with my VS settings.

(Visual Studio Community 2017 + ReSharper Ultimate)

MemeDeveloper
  • 6,457
  • 2
  • 42
  • 58
10

Alternatively - make sure that Resharper is enabled. My visual studio didn't update my Resharper license information, so when opening the resharper menu (after trying to figure out why my shortcuts stopped working!), the was a menu item "Why is Resharper disabled?" Clicking on the menu item opens up a dialog, which then automatically resolved the license. The next question for Jetbrains is why do I have to open the dialog for the thing to automatically renew??

InquisitorJax
  • 1,062
  • 11
  • 20
  • 3
    After hours of wasting time reinstalling everything, THIS turned out to be my problem. I feel so stupid. Thank you so much!!! – muzurB Feb 01 '19 at 20:12
  • Yes--after trying several options listed, I realized that my license had expired. Updating it fixed the issues. Just a bummer that there isn't better notification of the expiry. – Dr. Hilarius Jun 03 '20 at 19:43
  • Thank you, this is exactly what has happened to me. I think it is not the best user experience that Resharper does not warn you that changes will not take effect when you try to change its setting with it disabled. – Thundzz Sep 16 '21 at 07:14
9

This one worked for me

RESHARPER > OPTIONS > select visual studio (Under Keyboard Shortcuts)

VS + Resharper

Lawrence
  • 485
  • 3
  • 8
  • 22
8

You can look at the Visual Studio Integration options for ReSharper by...

  1. Select ReSharper > Options... from the Visual Studio menu
  2. Select the Visual Studio Integration item on the Options window

The bottom of the page gives instructions on how to reset the keyboard scheme.

If that doesn't work, I would re-install ReSharper.

John Laffoon
  • 2,885
  • 2
  • 26
  • 38
  • 1
    Worked for me in VS 2015 RC. The important step is mentioned in the ReSharper Options > Keyboard & Menus panel: reset the keyboard bindings in Visual Studio options first, before trying to reapply the ReSharper keyboard scheme. – Form Jul 10 '15 at 17:26
3

I had the same problem with Visual Studio 2015 and Resharper 9.2

"Resharper 9 keyboard shortcuts not working in Visual Studio 2015"

I had tried all possible resetting and applying keyboard schemes and found the answer from Yuri Fedoseev.

My Windows 10 language configuration only had Swedish in the language preferences "Control Panel\Clock, Language, and Region\Language"

The solution was to add English(I chose the US version) in the language list. And then go to Resharper > Options > Keyboard & Menus > Apply Scheme. (perhaps you do not even need to apply the scheme)

JimiSweden
  • 744
  • 10
  • 13
3

Try this steps:

1) Resharper > Options > Keyboard & Menus

Then point choose:

  • Hide overridden Visual Studio menu items (Check)
  • Visual Studio (Check)

Then click on Apply Scheme and Save.

2) Tools > Options > Environment > Keyboard

  • Click Reset
  • Click Ok
Kelly Keller-Heikkila
  • 2,544
  • 6
  • 23
  • 35
2

Just a comment on this issue. After I installed Visual Studio 2015 RTM all my resharper shortcuts were gone. (I had them working just fine with RC) A few of my colleagues were having the exact same issue with Visual Studio 2012.

I tried all the suggestions in here but none worked. The way I found to solve this was to: go to Tools -> Import and Export Settings , select the "Import selected environment settings" and in my case use the Settings I had from my RC installation (you can see that there are files with parts of a date as the filename like: CurrentSettings-2014-09-22). For my colleagues problem I basically sent them my .vssettings that I had that was working on my local VS2012 installation.

This effectively solved the shortcut problem. Further investigation in my case showed that although I applied the Resharper shortcuts they were never bound to the actual shortcut key thats why resetting stuff never worked.

rjso
  • 1,314
  • 10
  • 19
2
  1. Reset or apply the scheme
  2. Save
  3. Restart Visual Studio
SoftwareCarpenter
  • 3,835
  • 3
  • 25
  • 37
2

Note for NVidia users: GeForce Experience silently overrides some hotkeys (for example Alt+F7) and ReSharper stops to handle them. So you need to disable or remap nvidia hotkeys first.

Dmitry Sazonov
  • 8,801
  • 1
  • 35
  • 61
  • 1
    i unticked enable 'something' overlay in the geforce settings, and my resharper works again, ta – sawe Nov 09 '17 at 16:51
2

For me the issue was in Resharper License. It has been delinked from my account for some reason and it said that the license is invalid. When I linked it again to my JetBrains account it started to work properly after a few minutes.

Ivan Yurchenko
  • 3,762
  • 1
  • 21
  • 35
1

I got it working again by going into VS 2015 Options-> Keyboard, then hitting Reset. Then go back to resharper keyboard options and selecting the ReSharper scheme and hitting apply.

Rasmus
  • 2,783
  • 2
  • 33
  • 43
  • That worked for me as well. It's the method suggested in this Jet Brains forum thread: https://resharper-support.jetbrains.com/hc/en-us/community/posts/206010649-VS2015-and-keyboard-shortcuts?page=1#community_comment_205817735 – kiprainey Jun 27 '17 at 15:59
1

I have faced same problem. I followed the approved answer. I have done but it was not working, because my keyboard format was different. It was in Bengali keyboard. But later I have changed my keyboard layout and tried in this way.

Resharper > Options > Keyboard & Menus > Apply scheme > Save.

Then it was working fine. But whenever I change my keyboard English-US to Bengali then it changes again and I need to do reconfigure.

Ananda G
  • 2,389
  • 23
  • 39
1

In Visual Studio: Tools -> Options -> Environment -> Keyboard -> Reset

Duc Nguyen
  • 530
  • 8
  • 16
1

Updated Answer:

If the left corner shows it is a "Miscellaneous Files" on Visual Studio, you will want to make sure the current file is included in the project or not first, otherwise, ReSharper has no way to figure out the shortcut or even work. Visual Studio sometimes will not include the files in csproj

enter image description here

EvilDuck
  • 101
  • 1
  • 4
0

The only thing I could find said first try and do a VS-Repair. If that doesn't work then do this.

Restart Windows and in safe mode, run devenv /safemode in Visual Studio 2005 Command Prompt. If in safe mode this issue disappeared, the cause should be third-party applications, services or Visual Studio Add-ins. Please also try devenv /resetsettings or devenv /setup in Command Prompt.

http://support.microsoft.com/kb/907965

http://forums.asp.net/t/1103223.aspx/1

DotNetRussell
  • 9,716
  • 10
  • 56
  • 111
0

I have tried many of the above issues and still had installation problems.

It turns out that downloading the full version (not the web installer), and running it as administrator finally got the latest version installed with no errors in VS 2015.

0

First you need to reset VS setting (tools > option > Export Settings > Reset all settings) and click Resharper button(Option > Environment > Keyboard&Menu > Keyboard shortcuts) select item you want to use and apply scheme.

It's work for me on visual studio 2012.

Shihchao
  • 23
  • 8
0

I tried all the tricks in this thread and others, but just couldn't get this to work in Visual Studio 2022. Finally I tried to update to the latest version of ReSharper (2022.2.3 in my case) and suddenly it all worked!

Øystein Kolsrud
  • 359
  • 2
  • 16
-1

I had to delete the

C:\Users{username}\AppData\Local\JetBrains folder. Then is was able to enable the shorcuts again.

  • My issue was not really the same (no keyboard shorcuts because resharper was not able to load at all after a checkout) but this solution fixed it. – Orace Oct 16 '18 at 13:41
  • Please be careful. This can break Visual Studio, irrespective of Resharper. Also, this can prevent you from doing a clean uninstall-reinstall. – Jim G. Jul 02 '19 at 13:11