Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Resharper (Find and) fix all issues at once

e.g. alt enter -> context menu -> Find all 'Redundant name qualifier' issues -> but now in the new window that lists all those issues in my project, is there a way to fix them all ? (rather than go through them individualy)

ta.

like image 798
Cel Avatar asked Sep 02 '11 14:09

Cel


People also ask

In which form Jetbrains ReSharper presents all issues and errors?

ReSharper is capable of detecting errors not only in plain C# or VB.NET code, but in ASP.NET code-behind files, references in markup files, and ASP.NET MVC calls.

How do I run a ReSharper code analysis?

ReSharper helps you resolve most of the discovered code issues automatically. All you need is to press Alt+Enter when the caret is on a code issue highlighted in the editor and check the suggested quick-fixes.

How do I accept ReSharper suggestions?

If ReSharper suggests some values for the current parameter, use Up and Down arrow keys to navigate through the list of suggested values, or just type in a desired value. Press Tab or Enter to accept the value and move to the input position of the next parameter.

How does ReSharper help?

ReSharper helps instantly get to any code in a solution, no matter how large the solution is. It can also navigate you from any symbol to its related code such as implementations of a given interface, extension methods of a class, or usages of a field.


2 Answers

For now, you have to go through the issues individually. There's an existing request to batch-apply fixes to all similar issues selected in the "Inspection Results" tool window.

Code Cleanup does batch-remove certain issues in any given scope but it's quite limited in the number of fixes it can apply, compared to the number of code issues that ReSharper is able to detect.

like image 50
Jura Gorohovsky Avatar answered Oct 08 '22 23:10

Jura Gorohovsky


Click into a redundant qualifier, alt+enter, then choose from the context menu that lets you fix the issue however thoroughly you'd like.

Resharper options to remove redundant qualifier

I'm running ReSharper 8.2.

enter image description here

like image 34
Jon Crowell Avatar answered Oct 08 '22 22:10

Jon Crowell