Reputation: 6072
Is there a way to exclude certain files from Resharper's Code Cleanup? I have a range of generated files I'd like to leave untouched.
I found the below question, however the answer's there are workaround's for the specific issue, and don't answer how to actually exclude files. (If it's possible)
Is there a resharper comment directive to disable code cleanup for a class?
Upvotes: 16
Views: 3278
Reputation: 2151
If you go to ReSharper Options > Generated Code and add your file to the list of Generated Code or Generated File masks then it will be skipped by the Code Cleanup process.
Upvotes: 26