Generated Code
On this page of ReSharper options, you can specify files and code regions containing automatically generated code. For these items, ReSharper runs only those code inspections that check code for compiler errors and warnings. Some file masks and regions, which are typically used for generated code, for example *.designer.cs are included in this list by default, but you can change the default settings if necessary.
If you use .editorconfig in your solution, you can also mark generated code using the generated_code
property. For example:
You can use Ant-style wildcards in file masks:
?
to match a single character excluding directory separators*
to match zero or more characters excluding directory separators**
to match any number of characters including directory separators/
or\
to match directory separators regardless of the OS path format
For example a pattern **Test?\**.*
will match the following files:
C:\Projects\MyTestX\data\file_one.txt
/home/projects/TestY/file_two.xml
Bun not:
C:\Projects\Test\data\file_one.txt
/home/projects/TestY/file_two