stuck
stuck

Reputation: 2291

Is there a way in ReSharper to suppress all errors/warnings in one file?

I have a number of generated .cs files (originating from WSTL files). ReSharper isn't happy and I'm getting so many errors/warnings that its tough to separate the signal from the noise.

Is there a way to work around this? Can I suppress all the warnings/errors in an easy way?

My goal is to keep from (or minimize) changes to the generated files.

Upvotes: 2

Views: 1021

Answers (2)

Julien Roncaglia
Julien Roncaglia

Reputation: 17837

There are different ways to mark code as generated in Resharper the documentation explain them all but i guess that for your case changing the name of the files to match the default *.generated.cs would be the simpler.

Upvotes: 2

Bala R
Bala R

Reputation: 108957

Turn code analysis on/off => Ctrl + Shift + Alt + 8 (with Visual Studio key bindings; otherwise it could just be Ctrl + 8 )

Upvotes: 4

Related Questions