Hi, kingkeith.
Thanks for your reply. I didn’t know that there were packages for Sublime Text.
I have tried the package, but it doesn’t fold regions that contains one or more regions inside it.
Another thing is that “#region” and “#endregion” is not made to one line with just a [Name] of the region (box). This way the code is still a mess. The package puts “#region” and “#endregion” together in 2 lines ( and makes a box “…” after the name of the region ).
I think that folding is a very basic thing that should be implemented in Sublime Text. The default behaviour, in my opinion, should be that everything is folded when opening a code. No need to save the state.
The package has a point though. Shortcuts for folding and unfolding all regions are nice.
If Sublime Text implements this feature, I think that the name of the region should always be in a box, whether it’s folded or unfolded. Double-clicking the box folds or unfolds the region. If there is no name, then “…” is the box ( only when folded ). An additional thing is plus or minus to the left. “{” and “}” should only have plus or minus, and “…” as the name folded ( as folded you can double-click the box to unfold ). Copying a code from another source into Sublime Text folds the regions automatically.
I hope that somebody likes the suggestion, so please give some feedback on this issue.
Best regards,
Johannes Hillestad Baumann