Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where has the Code Analysis window gone?

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?

like image 455
NikolaiDante Avatar asked Jul 24 '15 16:07

NikolaiDante


People also ask

Where are Code Analysis results Visual Studio?

Code analysis will start executing in the background. You should see the message Running code analysis for <project> in the Visual Studio status bar towards the bottom-left corner. Once code analysis completes, the status message will change to Code analysis completed for <project>.

What is Code Analysis in Visual Studio?

The Code Analysis feature of Visual Studio performs static code analysis to help developers identify potential design, globalization, interoperability, performance, security, and a host of other categories of potential problems.


1 Answers

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

like image 131
jessehouwing Avatar answered Oct 22 '22 06:10

jessehouwing