Search code examples
c#visual-studioresharper

Show ReSharper warnings in the Error list window


I am trying to show ReSharper warnings inside of the Visual Studio “Error list” window, but it seems that only errors are shown inside of the window. Is there a way to show ReSharper warnings inside of the “Error list” window in vanilla ReSharper?

Example:

if (1 == 1) ;

This code generates two warnings:

  • A visual studio warning: CS0642 Possible mistaken empty statement
  • And a resharper warning: Similar expression comparison

But the “Error list” window just shows the Visual Studio one.

Notes:

  • I am using Microsoft Visual Studio Community 2015 - Update 1 and ReSharper 10.0.2.
  • I know that I can change the inspection severity to error but that is not an option in my case.

Solution

  • I don't know how to put R# quick-fixes (such as "Similar expression comparison") into Visual Studio Error List window.

    However, R# has its own "error list". Follow the top menu ReSharper -> Inspect -> Code issues in Solution, which opens "Inspection Results" window with the the same functionality and even better.

    And yes, "Inspection Results" contains both "Possible mistaken empty statement" and "Similar expression comparison" messages:

    enter image description here