Ignore #region using code fold/collapse
Answered
There is pretty annoying default behaviour working with C# scripts (may be others also, not sure) - if I have regions and non-region areas in a class, using collapse code to level 1 regions will be collapsed, together with uncategorised (without region) methods. In most cases that is no expected behaviour, because I still wish to see the method names and initialisation within the regions. Is there any option to do so?
Would be also useful to have a "collapse region" short key which also is missing in Rider...
Please sign in to leave a comment.
Agreed
Hi Jonbrant,
Unfortunately, there is no way to exclude #region from folding, but we have a feature request for this: RIDER-13184. As a workaround, you can collapse/expand the region manually with Ctrl -/+.
Thanks. That's what I've been doing. Fairly close