代码分析窗口哪里去了? [英] Where has the Code Analysis window gone?

查看:84
本文介绍了代码分析窗口哪里去了?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Visual Studio 2013中,我使用代码分析窗口向开发和管理团队提供报告。





在Visual Studio 2015 Enterprise RTM中,这些错误已返回到错误窗口,我不再只能看到单个项目的CA问题,也不能按类型对其进行过滤。 / p>

有没有办法将代码分析窗口带回来?

解决方案

Visual Studio代码分析已与Intellisense合并,现在可以从错误窗口中查看。当您选择 Build + Intellisense或 Intellisense时,您的代码分析警告将显示在此处。您不再需要构建解决方案就可以在那里看到它们。



这是新的基于Roslyn的编辑器的特权之一。





将其设置为Intellisense仅应向您显示代码分析警告,并且在左侧有现在是选择整个解决方案,当前项目,当前文档或打开文档的选项。



我个人真的很喜欢最后一个选项,因为它对于希望离开营地清洁工的人们来说,效果非常好。



如果您添加其他分析仪(通过vsix或Nuget),则会显示为其他规则



您可以添加类别列:



然后按类别过滤:


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

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?

解决方案

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.

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:

And then filter by category:

这篇关于代码分析窗口哪里去了?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆