Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Exclude files from solution-wide Code Cleanup in Resharper

Tags:

.net

resharper

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?

like image 769
Chris Avatar asked Aug 12 '15 10:08

Chris


1 Answers

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.

Picture of the relevant pane of the ReSharper options

like image 113
meh-uk Avatar answered Oct 14 '22 02:10

meh-uk