自定义“灯泡"快速行动规则 [英] Customise "Light Bulb" Quick Action Rules

查看:73
本文介绍了自定义“灯泡"快速行动规则的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问题与一个人可以在哪里为新的Visual Studio 2015灯泡或快速操作功能自定义规则集有关.

The question relates to where can one customise the rule set for the new Visual Studio 2015 Light Bulb or Quick Actions feature.

具体来说,我想禁用下图所示的图像,以便将"String.IsNullOrWhiteSpace"简化为"string.IsNullOrWhiteSpace".

Specifically I want to disable the one imaged below, for "simplifying" String.IsNullOrWhiteSpace to string.IsNullOrWhiteSpace.

给出的警告消息是:

IDE0001的名称可以简化.

IDE0001 Name can be simplified.

推荐答案

Tools-> Options-> Text Editor-> C#-> Code Style

Tools -> Options -> Text Editor -> C# -> Code Style

然后取消选中以下内容:

在成员访问表达式中首选内在的预定义类型关键字

Prefer intrinsic predefined type keyword in member access expressions

这篇关于自定义“灯泡"快速行动规则的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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