ReSharper | Options | Code Inspection | Generated Code
In this page of ReSharper options you can specify files and code regions containing automatically generated code. For these items, ReSharper runs only the code inspections that check code for compiler errors and warnings. Some file masks and regions, which are used by Visual Studio for generated code, e.g. *.designer.cs are included in this list by default, but you can change the default settings if necessary. For more information, see Partly disabling code inspection for generated code.
The list of items containing generated code can be also used for excluding generated code from search results. To enable this, select the Filter results from generated files check box in the ReSharper Options | Environment | Search & Navigation.
|Generated files and directories||This area contains the list of files and directories that contain generated code.|
|Add File||Click this button to add a file to the list.|
|Add Folder||Click this button to add a directory to the list.|
|Remove||Click this button to remove a selected item from the list.|
|Generated file masks||This area contains the list of file masks that should be excluded from the scope of Code Analysis. Use Add, Edit, and Remove buttons to modify the list of file masks according to your individual preferences.|
|Generated code regions||This area lets you exclude certain regions from the scope of Code Analysis. Use Add, Edit, and Remove buttons to modify the list of regions according to your individual preferences.|
ReSharper's settings are saved in settings layers that enable you to have different settings for different solutions as well as to share your settings with your team. To learn more, study the Managing and Sharing Options section.