Resharper 8 - Quickfix shortcut Alt+Enter gone

a 夏天 提交于 2019-12-18 10:04:44

问题


In Visual Studio 2012/2013, I want to reassign the Alt+Enter ↵ key combination to the "Quickfix" (triggering the menu from the light bulb) because it is not working anymore. I can't. I have tried the following (I am aware that some of the suggestions refer to VS 2010 and older R# versions):

  • Tried to change manually in Tools - Options - Keyboard: the former ReSharper_QuickFix entry is gone, see ReSharper_QuickFix gone
  • Tried Resharper_AltEnter as suggested in What is the name of the ReSharper's Quick Fix command - nothing, no shortcut
  • Switched back and forth settings in ReSharper -> Options -> Keyboard & Menus as described in Resharper Alt Enter not working - nothing
  • Switched back and forth settings in ReSharper -> Options -> IntelliSense -> General as also described in Resharper Alt Enter not working to no avail
  • Tried other suggestions from the same page
  • Sledgehammer approach: run devenv.exe /ResetSettings - nope
  • Search SO and the web up and down - found nothing

I have not yet had the nerve to re-install R# or even VS.

How can I get a standard set of R# keyboard shortcuts into Visual Studio? I'd gladly wipe out everything that is there just to get back my Alt+Enter Quickfix..


回答1:


Please try this:

  • remove all mapping for Alt+Enter ↵ shortcut here Tools | Options | Environment | Keyboard (to find out mapped actions, press Alt+Enter ↵ in "Press shortcut keys" field and look at the list in "Shortcut currently used by" dropdown);

After removing:

  • Type ReSharper_AltEnter in "Show command containing" field;
  • Select "Text Editor" in "Use new shortcut in" dropdown;
  • Press Alt+Enter in "Press shortcut keys" field | Assign;
  • Select "XAML UI Designer" in "Use new shortcut in" dropdown;
  • Press Alt+Enter in "Press shortcut keys" field | Assign;



回答2:


They changed the name of this shortcut to Resharper_AltEnter.




回答3:


I had the same problem. I'd upgraded to VS Professional 2013 (update 3) about a week ago. I then installed Resharper and was re-tooling a few projects with Resharper for a few days. All was going well, then things went haywire. I tried all the suggestions in this post and elsewhere. This included un-installing and re-installing resharper. Un-installing and re-installing VS. Nothing seemed to be fixing it

Until at some point I tried what turned out to be the fix: uninstalling a couple of the R# extensions: Resharper.ExternalAnnotations, Nuget Support for Resharper and Resharper Razor Plugin.

Not sure which was causing the issue. But things seem to be working normally now.

I also went further and installed the latest ReSharper 8.2.3 - https://www.jetbrains.com/resharper/download/

Things are still ok [crossing fingers].

I have NOT installed any R# extensions. I will try to figure out which was the offending extension after I have had a few days of rest for this issue. So, in retrospect, it seems this problem started after I installed some offending R# extension.




回答4:


https://www.jetbrains.com/help/resharper/Code_Analysis__Quick-Fixes.html

Merge Visual Studio Light Bulb actions into ReSharper bulb - set checkbox in R# settings



来源:https://stackoverflow.com/questions/18514642/resharper-8-quickfix-shortcut-altenter-gone

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!