ReSharper Web Help

Code Analysis features are available in: ReSharper Full Edition and ReSharper C# Edition

 Note

Solution-wide analysis is disabled by default and should be explicitly configured for every new solution you use.

Initial analysis may take some time to complete while you continue your work, but after it is done, only files that can potentially be affected by recent changes are reanalyzed.

To switch solution-wide analysis on
  1. Either choose ReSharper | Options | Code Inspection | Settings and select Enable code analysis, or, alternatively, double-click the gray circle in the right corner of the status bar.
  2. When the Solution-Wide Analysis pop-up warning displays, click OK.
  3. Optionally, you can configure the list of files and folders to skip when analyzing the solution for errors. To do that, click Edit Items to Skip in the Settings tab and then, when the Skip Files and Folders dialog box opens, use Add File... and Add Folder... buttons to specify files or folders to skip:
    Skip Files and Folders dialog box
  4. Click OK.

After you have switched solution-wide analysis on, several changes are made:

  • The circle indicator in the right corner of the status bar displays the progress of solution-wide analysis. After it is complete, the indicator turns either green (if no solution-wide errors were found) or red (if errors were discovered):
    Code_Analysis__Solution-Wide_Analysis__Enabling_Solution-Wide_Analysis__red_indicator.png
  • A small area to the left of the circle indicator is allocated to show the number of solution files that contain errors, if any. Left-click in this area to go to next error in solution.
  • Solution-wide code inspections for non-private members become available.

     Tip

    You can view the list of ReSharper code inspections by choosing ReSharper | Options | Code Inspection | Inspection Severity.
  • Names of several Go to commands are extended. Specifically, Go to Next Error changes to Go to Next Error in Solution and Go to Previous Error becomes Go to Previous Error in Solution.

See Also

Procedures

Reference

External Links