Keep specific regions during file layout cleanup Permanently deleted user Created November 22, 2018 14:08 Hi, I have the followin region on my file, and I want to keep it untouch. Is it possible to add a rule on R# file layout to do that ? Thank's Fabien
Hello Fabien!
Thank you for the feedback.
Currently there's no option to disable file layout for specific region. You can try setting 'Remove regions' to 'Except generated', in this case regions specified in ReSharper | Options | Code Inspection | Generated Code won't be removed.
There's also feature request on disabling code cleanup for a block of code - https://youtrack.jetbrains.com/issue/RSRP-466594.
Thank you.
thanks for the info, I'll test it and follow the feauture request closely