开发者

Resharper Keyboard shortcut Go to next issue and display and fix issue?

开发者 https://www.devze.com 2023-01-24 19:53 出处:网络
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 t

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/sugges开发者_开发知识库tion
  2. Display possible fixes and apply them.


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.


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.


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.


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


The shortcut has been modified by default :

To navigate to next issue/warning : F2

Display possible fixes and apply them : Alt + Enter

Source

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号