How to get rid of Naming rule violation messages in Visual Studio?

后端 未结 9 634
我在风中等你
我在风中等你 2020-12-14 05:10

I just installed Visual Studio 2017. When I open an existing website, I get all sorts of warning messages such as this one:

IDE1006 Naming rule violat

9条回答
  •  太阳男子
    2020-12-14 05:46

    If you want to suppress it only in some files or areas you can use the following:

    #pragma warning disable IDE1006
    
    // the code with the warning
    
    #pragma warning restore IDE1006
    

提交回复
热议问题