NoteSolution-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.
- Either choose ReSharper | Options | Code Inspection | Settings, select Enable code analysis and Analyze errors in whole solution, or, alternatively, double-click the gray circle in the right corner of the status bar.
- When the Solution-Wide Analysis pop-up warning displays, click OK.
- 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:
- 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):
- 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.
TipYou 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.