Where has the Code Analysis window gone?

NikolaiDante picture NikolaiDante · Jul 24, 2015 · Viewed 27.5k times · Source

In Visual Studio 2013, I used the Code Analysis window to provide reports to both the Development and Management teams.

Code Analysis window in Visual Studio 2013

In Visual Studio 2015 Enterprise RTM, these errors have returned to the error window and I can no longer just see CA issues for a single project, or filter them by type.

Is there a way to bring the Code Analysis window back?

Answer

jessehouwing picture jessehouwing · Jul 24, 2015

Visual Studio Code Analysis has been merged with Intellisense and can now be viewed from the Error window. When you select "Build+Intellisense" or "Intellisense" your code analysis warnings will show up there. You no longer need to build your solution to see them there.

This is one of the perks of the new Roslyn based editor.

enter image description here

Setting it to Intellisense Only should show you your code Analysis Warnings and on the left there is now an option to select "Entire Solution", "Current Project", "Current Document" or "Open documents".

I personally really like the last option, as it works really well for people wanting to leave the campground cleaner than they found it.

If you add additional analyzers (through a vsix or Nuget), they show up as additional rules for Code Analysis.

You can add the "Category" column: enter image description here

And then filter by category: enter image description here