Keep specific regions during file layout cleanup

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

 

0
2 comments

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.

1
Avatar
Permanently deleted user

thanks for the info, I'll test it and follow the feauture request closely

0

Please sign in to leave a comment.