I want ReSharper to remove empty regions on code cleanup.
#region
#endregion
Is there any setting?
Edit -> Replace in Files (regular expression)
unnamed regions
#region[\r\n\t ]*#endregion
named regions
[ ]*#region \w*[\r\n\t ]*#endregion \w*[ ]*
Run a cleanup of your code afterwards to get rid of the empty lines
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With