zoukankan      html  css  js  c++  java
  • 关闭ReSharper中的[ Use 'var' ]提示(Disable C# “var” Recommendation in ReSharper)

      ReSharper,确实是个很不错的工具,代码如果写得不规范他会提示,而且可以根据自己公司的需求自定义代码规范。 默认设置的提示已经相当完美,但美中不足就是老提示你用var来代替所有类型。

    按以下步骤,禁用该提示:

    1、打开“Resharper”菜单,选择“Options...”;

    2、从弹框中选择“Code Inspection”,“Inspection Severity”;

    3、选择“Language Usage Opportunities”;

    4、将“Use 'var' keyword when initializer explicitly declares type”,设置为“Do not show”。

    To disable these suggestions, do the following:

    1. Go to the ReSharper menu and select Options…

    2. From the resulting dialog box, select Code Inspection, Inspection Severity.

    3. Select the C# tab and then Language Usage Opportunities.

    4. Set both “Use ‘var’ keyword when initializer explicitly declares type” and “Use ‘var’ keyword when possible” to “Do not show”.

  • 相关阅读:
    IT知识构架与操作系统简介
    read与for循环语句
    shell基础练习题
    shell 100以内加法
    shell
    python学习第一日
    shell脚本基本介绍
    bash的基本特性
    Linux习题
    Linux基本命令
  • 原文地址:https://www.cnblogs.com/AngelLee2009/p/3344054.html
Copyright © 2011-2022 走看看