Exclude files from general code cleanup in Resharper

Is there a way to exclude certain files from Resharper Code Cleanup? I have a number of generated files that I would like to leave intact.

I found the following question, however the answer there is a workaround for a specific problem and do not answer how to actually exclude files. (If it is possible)

Is there a resharper comment directive to disable code cleanup for a class?

+6
source share
1 answer

If you go to the ReSharper> Generated Code parameters and add your file to the list of generated codes or files of the generated files, it will be skipped during code cleaning.

Image of the corresponding ReSharper parameter area

+14
source

All Articles