Purge existing regions during code clean-up.
Can code clean-up be configured to purge pre-existing regions?
Background: I have taken on responsibility for 40,000 lines of code that contain a mixture of region formatting conventions. Although my Resharper clean-up type-order XML config is generating new regions correctly sometiomes Resharper's code clean-up leaves old method grouping regions untouched.
Maybe this is a feature request. Ideally I would like two clean-up check-boxes, (1) "Purge all existing regions" (2) "Purge existing regions outside of methods".
Please sign in to leave a comment.
Hello,
Yes, you can, using the 'Reorder members' functionality of the code cleanup.
First of all you should turn on 'Reorder members' in your code cleanup profile
settings and then add RemoveAllRegions="true" attribute to all patterns under
ReSharper | Options | Languages | C# | Type Member Layout. Thank you!
Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"