ReSharper 2016.1 Help

Finding Out What is Wrong with Your Code

As a result of the design-time code inspection, ReSharper highlights code issues right in the editor in different ways depending on their severity levels:

  • Errors are highlighted with red:
    • Unresolved symbols are displayed in red:
      Code_Analysis__Code_Highlighting__Errors__1
    • Statements or parts of them are highlighted with a red curly underline:
      Code_Analysis__Code_Highlighting__Errors__2
  • Warnings are greyed out or highlighted with blue:
    • Redundant symbols are displayed with grayed text:
      Code_Analysis__Code_Highlighting__Warnings__1
    • Other warnings are highlighted with a blue curly underline:
      Code_Analysis__Code_Highlighting__Warnings__2
  • Suggestions are highlighted with a green curly underline:
    Code_Analysis__Code_Highlighting__Suggestions__1
  • Hints are highlighted by adding a dashed green underline to the initial two letters of the corresponding symbol:
    Code_Analysis__Code_Highlighting__Hints__1

Besides, you can view short descriptions of the problems. There are several ways to do so:

  • Set the mouse pointer over any highlighted code issue to get a tooltip with the corresponding message:
    Code_Analysis__Finding_Out_What_is_Wrong_with_Your_Code__2
  • Set the mouse pointer in the marker bar over a colored marker that corresponds to a specific issue, and check the details of the issue in the tooltip:
    Code_Analysis__Finding_Out_What_is_Wrong_with_Your_Code__3
  • Set the caret at a highlighted issue and the issue message will appear in the status bar:
    Code_Analysis__Finding_Out_What_is_Wrong_with_Your_Code__1

As an alternative to opening files and exploring code issues there, you can inspect issues in a specific scope - project, project folder, or the whole solution.

See Also

Last modified: 19 August 2016