如何在 Visual Studio 2015 中禁用灯泡? [英] How do you disable the light bulb in Visual Studio 2015?

查看:52
本文介绍了如何在 Visual Studio 2015 中禁用灯泡?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在 Visual Studio 2015 中完全禁用灯泡?这让我想起了 Clippy.

How do you completely disable the light bulb in Visual Studio 2015? It reminds me of Clippy.

推荐答案

灯泡似乎是由分析器驱动的.这些可以通过代码分析规则集进行操作.

The light bulb seems to be driven of an Analyzer. these can be manipulated via a Code Analysis Ruleset.

在项目属性中选择代码分析选项卡 -

In project properties select the Code Analysis tab -

然后打开并编辑规则集,它们位于分析器 Microsoft.CodeAnalysis.CSharp.FeaturesMicrosoft.CodeAnalysis.CSharpMirosoft.Analyzers 下.NativeCodeAnalysis:

Then open and edit a Ruleset, these are under the Analyzers Microsoft.CodeAnalysis.CSharp.Features , Microsoft.CodeAnalysis.CSharp and Mirosoft.Analyzers.NativeCodeAnalysis:

托管二进制分析似乎是以前版本中的 FxCop/代码分析.

Managed Binary Analysis seems to be FxCop / Code Analysis which was in previous versions.

将规则更改为无,规则不再触发.但是,添加或使用不同的分析器将导致灯泡返回.

Change the rules to none, and the rules aren't fired anymore. Adding or using different Analyzers will result in the return of the light bulb however.

创建的规则集可以根据需要应用于所有项目.

The created Ruleset can be applied to all projects as needed.

但是,灯泡是工具提示的替代品,因此禁用所有内容会严重妨碍 Visual Studio 作为 IDE 的实用性.

However, the light bulb is the replacement for the tool tip, so disabling everything would severly hamper the usefulness of Visual Studio as an IDE.

这篇关于如何在 Visual Studio 2015 中禁用灯泡?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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