让ReSharper的强制上的字段此关键字 [英] Let Resharper force this keyword on fields

查看:124
本文介绍了让ReSharper的强制上的字段此关键字的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有谁知道这是否可能有ReSharper的强制使用此关键字时,可以用吗?对于字段和这样的...

Does anyone know if it is possible to have resharper force the use of the this keyword when it can be used? For fields and such...

ReSharper的是能够显示它可以去除的,但我们的编码标准告诉我们要使用this关键字。

Resharper is capable of showing where it can be removed, but our coding standard tells us to use the this keyword.

推荐答案

在ReSharper的选项,下的代码编辑 - > C# - >代码样式的存在为的使用的选项这个。预选赛的,你可以对字段,属性,事件和方法来设置。

In ReSharper Options, under Code Editing -> C# -> Code Style there is an option for Use "this." qualifier for that you can set for fields, properties, events, and methods.

这篇关于让ReSharper的强制上的字段此关键字的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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