Thanks for the suggestion. I’ve given this some thought and looked at how it would fit with Objo Studio’s existing code-folding behaviour.
For now, I’m not planning to add arbitrary region comments. Studio already folds actual language structures such as If, For, While, Select Case and Try blocks, and its editor is organised around individual methods and event handlers rather than whole source files. I’m concerned that arbitrary regions could encourage large sections of loosely structured code to be hidden when extracting that work into a well-named method would usually make the code clearer.
However, this discussion did expose a genuine shortcoming in Studio. Although each member already remembered its caret and scroll position, it forgot which blocks were collapsed when you switched to another member.
I’ve fixed that for the next release: https://feedback.objo.dev/bug/1161
Each method and event handler will now remember its own collapsed code-folding regions, independently of every other member. Switching away and returning will therefore restore the folding layout you left behind.
I’m happy to reconsider explicit regions later if compelling cases emerge that aren’t better served by the existing structural folding or by extracting a method.