Resharper ? Optimize your code analysis

3. March 2010

When running Resharper against legacy code I have found that I would like to turn off code analysis for certain files, folders, or code blocks so I went hunting in Resharper options land and found the nugget that I was hunting for.

Open Resharper Options:

image

Then go to Code Inspection Settings ?>

image

If you add a Generated Code Region Resharper will ignore everything in that region. You can name it something subtle like ?Resharper Ignore this please? like so.

image

You also have that advanced button that allows you to add entire files and folders to be skipped.

image

 

Enjoy the increased performance of Resharper with all your legacy code.