ReSharper 2016.1 Help

Settings

ReSharper | Options | Code Inspection | Settings

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

ItemDescription
General
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.
Highlight context exits This option, enabled by default, tells ReSharper to highlight all places where the control flow can exit the current context. For example, for a method, it will highlight the return type of the method, all return, throw keywords, etc. when you set the caret to one of these identifiers
ReSharper highlights context exits
For a loop, it will additionally highlight the loop keyword as well as all the break statements inside this loop.
Note that if a method is not entirely visible in the editor, you can invoke the Navigate to Function Exits command on the method name to trigger another kind of highlighting, which will not disappear when you your caret leaves the method name.
Enable solution-wide analysis

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 If this check box is selected, ReSharper displays Selecting this check box allows displaying the Inspection [name of inspection] ThemedIcon.Settings.Screen.[Gray] sub-menu in the action list when press Alt+Enter over a highlighted code issue in the editor.
Commands in the sub-menu help you do the following:
Inspection [name of inspection] sub-menu
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:
Namespace import quick-fix
If it is not selected, the corresponding action appears in the action list. See Importing Missing Namespaces for details.
Value analysis mode Using the value analysis, ReSharper finds out which entities can hold null value and highlights possible errors with null dereference. You can choose one of the following modes.
  • Disable nullability analysis - ReSharper will not analyze nullable values, which means that a slight performance gain is possible.
  • Optimistic: when explicitly marked with [CanBeNull] attribute, or checked for null - ReSharper assumes that only entities explicitly marked with CanBeNull or ItemCanBeNull attribute or explicitly checked for being null, can be null.
  • Pessimistic: when entity doesn't have explicit [NotNull] attribute - ReSharper assumes that all nullable entities without an explicit NotNull or ItemNotNull attributes can be null.
Visual Studio Integration
Do not show Visual Studio bulb... This option is not available in Visual Studio versions older than 2015
If this check box is selected, Visual Studio's light bulbs are not shown separately. If necessary, Visual Studio's quick actions are integrated into ReSharper's action list. For each Visual Studio's quick action, ReSharper does the following:
  • If there is a similar ReSharper's quick-fix, the Visual Studio's quick action is not displayed
  • If there are no similar ReSharper's quick-fixes, Visual Studio's action becomes available in the ReSharper's action list. You can recognize Visual Studio's quick actions by the special icon ThemedIcon.YellowBulbVS.Screen.[Gray].
Suppress Visual Studio squiggles... This option is not available in Visual Studio versions older than 2015
If this check box is selected, Visual Studio's error highlighting in the editor is not displayed, only ReSharper's highlighting appears.
Elements to skip
In this section, you can exclude files, file masks, and folders from code inspection:

See Also

Last modified: 19 August 2016