51

Is there a keyboard shortcut to use in ReSharper to see suggestions and apply them? When I inspect code issues in a Solution, I find it slow to use the mouse to move from one issue/recommendation to the next, and see each suggestion.

I'd like to know a shortcuts for:

  1. Navigating to the next issue/suggestion
  2. Display possible fixes and apply them.
CJBS
  • 15,147
  • 6
  • 86
  • 135

5 Answers5

79

You could use:

  1. Go to next issue or suggestion Alt + PgDown.

  2. Display possible fixes and apply them Alt + Enter. Once to see possible fixes twice to apply them.

You can also refer to the default ReSharper keymap (Visual Studio scheme) for more keyboard shortcuts.

Pang
  • 9,564
  • 146
  • 81
  • 122
Amra
  • 24,780
  • 27
  • 82
  • 92
  • 3
    If you have the IntelliJ IDEA shortcuts the first one would be F12. And you can go to the previous issues/suggestions with Sihft+Alt+PgDown or Shift+F12 – fbiagi Feb 06 '15 at 14:03
  • [ReSharper help - Navigate code issues](https://www.jetbrains.com/help/resharper/Design_time_Inspection.html#navigating) – Pang Mar 10 '21 at 00:52
13

Tools | Options | Environment | Keyboard

Search for ReSharper.ReSharper_GotoNextErrorInSolution and ReSharper.ReSharper_GotoNextHighlight and give them whatever shortcut you like. Cesar is correct with the Alt + Enter solution (ReSharper_QuickFix). Also, the navigation shortcuts he mentions are ReSharper.ReSharper_GotoNextOccurence and ReSharper.ReSharper_GotoPreviousOccurence, though those last two seem best suited for the results of Find Usages, etc.

Jasper
  • 2,166
  • 4
  • 30
  • 50
Kirk Woll
  • 76,112
  • 22
  • 180
  • 195
9

To go to the next error in the entire solution: Shift + Alt + PgDown

To go to previous error in the entire solution: Shift + Alt + PgUp

This will save you from opening each files individually.

Rosdi Kasim
  • 24,267
  • 23
  • 130
  • 154
  • For me this worked after activating "solution wide analysis" in r# options > code inspection – Thomas Apr 29 '21 at 11:29
2

If you have installed the StyleCop plugin for ReSharper, you can use the F12 key to move to the next issue.

Pang
  • 9,564
  • 146
  • 81
  • 122
Nilesh Gule
  • 1,511
  • 12
  • 13
0

The shortcut has been modified by default :

To navigate to next issue/warning : F2

Display possible fixes and apply them : Alt + Enter

Source

Malick
  • 6,252
  • 2
  • 46
  • 59