Let Resharper force this keyword on fields

前端 未结 2 870
感情败类
感情败类 2021-02-06 21:55

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 is capable of showing where

2条回答
  •  时光取名叫无心
    2021-02-06 22:43

    Checkout the StyleCop for Resharper plugin (part of the StyleCop project).

    You can then set the "default" severity for StyleCop to Error (or just this particular rule) and it will appear in the R# "files with errors" area inside Visual Studio.

提交回复
热议问题