Oleg Vazhnev
Oleg Vazhnev

Reputation: 24067

how to turn of certain VS warnings?

I would like to turn off some Visual Studio warnings including:

But probably some of the goes from some plugin like Resharper? I'm not sure...

Upvotes: 1

Views: 911

Answers (2)

RJFalconer
RJFalconer

Reputation: 11721

  • Disable "Use implicitly typed local variable declaration"

    1. ReSharper->Options

    2. Code Inspection->Inspection Severity

    3. Scroll down to "use 'var' keyword when possible" and change to "Do not show"

  • Disable "Field can be made read only"

    1. As above, but with "Field can be made read only"
  • Name doesn't match rule...

    1. I think this is the answer; https://stackoverflow.com/a/3345137/28411

Upvotes: -1

Reed Copsey
Reed Copsey

Reputation: 564771

Those all sound like Resharper suggestions...

You should be able to change the "inspection options" right at the point of the warning. If you change it from Warning to Hint (or disable it entirely), it will not prompt you anymore.

Upvotes: 3

Related Questions