ReSharper Help

Settings

ReSharper | Options | Code Inspection | Settings

In this page of ReSharper options, you can specify your preferences for Code Inspections.

ItemDescription
Enable code analysis Select this check box to enable design-time code inspection.
Color identifiers

This check box lets you enable or disable ReSharper syntax highlighting scheme.

If it is selected, language identifiers are highlighted with colors as defined in Visual Studio options: Tools | Options | Environment | Fonts and Colors.

The list of syntax identifiers provided by ReSharper is available in the Display items list, each name starting with ReSharper prefix.

Highlight color usages Enables highlighting of color definitions in code. For more information, see Color Assistance.
Highlight special characters in string literals Enables highlighting of correct and incorrect escape sequences in non-verbatim strings. For example:
Highlighting of escape sequence in strings
For more information, see Regular Expressions Assistance.
Analyze errors in whole solution

Enables Solution-Wide Analysis (including solution-wide code inspections), which is disabled by default.

Note that in large solutions, solution-wide analysis may result in some performance degradation. However, there are several ways to improve the performance of solution-wide analysis. For more information, see Configuring Solution-Wide Analysis.

Show code inspection options in action list Selecting this check box allows displaying the Inspection [name of inspection] submenu in the action list.
Show the "Import namespace" action using popup If this check box is selected, a pop-up that suggests importing namespaces shows up if there is one or more non-imported types are detected in the file. If it is not selected, the corresponding action appears in the action list. See Importing Missing Namespaces for details.
Assume entity value can be null During Value Analysis ReSharper finds out what entities can hold null value and highlights possible problems depending on this setting.
  • When entity is explicitly marked with CanBeNull attribute, or checked for null - ReSharper assumes that entities explicitly marked with CanBeNull attribute or explicitly checked for being null, can be null.
  • When entity doesn't have explicit NotNull attribute - ReSharper assumes that all entities without an explicit NotNull attribute can be null.
Skipped elements In this section, you can exclude files, file masks, and folders from code inspection:

See Also

Last modified: 30 June 2015