开发者

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 ther开发者_运维问答e a way to fix them all ? (rather than go through them individualy)

ta.


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.


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 (Find and) fix all issues at once

I'm running ReSharper 8.2.

Resharper (Find and) fix all issues at once


Yes, you can use ReSharper's "Cleanup Code" to remove redundant qualifiers (amongst other things). This is available from the context-menu when you right-click files, projects and folders in the Solution Explorer window. Code Cleanup will run over all the selected files, reformatting and fixing common issues - it is also customizable.


This is available (in part) in the latest build. If you go to a specific issue in the code editor, click the lightbulb the fix option now has a submenu for some issues that can be applied to the entire solution. Would be cooler if it was available from the Code Issues window, but still a great improvement.

Resharper (Find and) fix all issues at once

https://www.jetbrains.com/help/resharper/2016.1/Code_Analysis__Fix_in_Scope.html


No use for Resharper Just Go To Visual Studio

Analyze Menu Code Cleanup Menu Run Code ....tion

And Complate

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜