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 Environment | Search & Navigation options page.
- Disabling code style assistance for generated code, e.g. code cleanup is not applied to generated code.
|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 inspection. 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 inspection. Use Add, Edit, and Remove buttons to modify the list of regions according to your individual preferences.|