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

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

问题描述

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

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

在 Visual Studio 2015 Enterprise RTM 中,这些错误已返回到错误窗口,我无法再仅查看单个项目的 CA 问题,或按类型对其进行过滤.

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 已与 Intellisense 合并,现在可以从错误窗口查看.当您选择Build+Intellisense"或Intellisense"时,您的代码分析警告将显示在那里.您不再需要构建解决方案就可以在那里看到它们.

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.

这是基于 Roslyn 的新编辑器的好处之一.

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

将其设置为 Intellisense Only 应该会显示您的代码分析警告,并且在左侧现在有一个选项可以选择整个解决方案"、当前项目"、当前文档"或打开文档".

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.

如果您添加额外的分析器(通过 vsix 或 Nuget),它们会显示为代码分析的额外规则.

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

您可以添加类别"列:

然后按类别过滤:

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

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