Remove Regions Follow
Is there an option in ReSharper to remove one or more regions? I see I can
highlight a chunk of code and select Surround With... Region, but I'm hoping
I can do the inverse... click on a #region and remove it.
Please sign in to leave a comment.
Hello Lothan,
I uses "File Structure Window" to remove for this case.
Alexander Nesterenko alexn@safedevelop.com
L> Is there an option in ReSharper to remove one or more regions? I see
L> I can highlight a chunk of code and select Surround With... Region,
L> but I'm hoping I can do the inverse... click on a #region and remove
L> it.
L>
Thanks, Alexander. I thought I had remembered ReSharper could do this, but I
couldn't remember how. It's not quite as convenient as as a shortcut key,
but it gets the job done nicely and without me having to fumble around
counting nesting levels or collapsing inner blocks to find the pair I want.
"Alexander Nesterenko" <framework3705@mail.ru> wrote in message
news:a74fbf08aa268c9b87ae276432c@news.jetbrains.com...
>
>
>
Is there a way to "reformat solution" to remove all regions at once?
Is there a way to edit the reformat option so it doesn't (EVER!) insert regions
(wrapping interfaces, etc)?
Wouldn't a simple search & replace with a regular expression do the trick?
Just replace
^ #(end)?region .\n
with nothing? Unless of course you have some very fancy string constants
which will get mangled as well?