ReSharper executes its Code Analysis by applying inspections. The list of inspections includes:
- Compiler errors and warnings.
- ReSharper's predefined code inspections. You can find the comprehensive list of these inspections in the Inspection Severity page of ReSharper options.
- Custom code inspections defined in structural search and replace patterns.
Code issues found by inspections, are highlighted in the editor according to their severity and the corresponding marks are shown in the marker bar.
The easiest way to deal with code issues is to set the caret on the highlighted code item and press Alt+Enter or click on the Action List icon that appears to the left of the code issue. In the actions list, ReSharper will suggest one or more quick-fixes or refactorings for most issues. For each code issue, ReSharper shows the Inspection options sub-menu in the actions list with the following items:
Note
You can disable the
Inspection options
sub-menu in
the
Code Inspections: Settings
page of ReSharper options.
Choose
ReSharper | Options | Code Inspection | Settings
in
the main menu, and then use
Show analysis options items in bulb menu
check-box.
You can navigate between issues found by code inspections in a specific file or within the whole solution and take actions upon them. However, there's an alternative way: you can display the list of all issues discovered in a folder, project, or even in your whole solution using the Inspection Results tool window. You can additionally filter which issues to display in this tool window, and navigate to them. See Viewing Inspection Results in a Project or Solution for details.
Another good thing is that you can define you own inspections based on structural search and replace patterns, and specify severity level for them. For more information, see Structural Search and Replace.
This section includes the following topics:
- Inspections Severity and Highlighting
- Marker Bar and Status Indicator
- Finding Out What Is Wrong with Your Code
- Navigating Between Code Issues
- Configuring ReSharper Inspections
- Viewing Inspection Results in a Project or Solution
- Finding Similar Issues
- Sharing Inspection Results
Note
If necessary, you can change severity level of every code inspection. For more information, see Configuring ReSharper Inspections.

