I wish these would stay when saving a project in Basic4Andoid. I collapse most of my subs so jumping around an activity is quick. Only wish they would stay between sessions. I'm not missing something am I. Really think this product will get much more popular!! it so good
In the meantime you can collapse all subs by pressing Ctrl + Shift + E. Expanding all is done with Ctrl + E.
You can also use #Region to add custom collapsing sections. These sections will be collapsed by default.
B4X:
#Region This is some region
Sub Activity_Create(FirstTime As Boolean)
End Sub
Sub s1
...
End Sub
#End Region
Did this wishlist item ever make it to the road map ? I'd love for the IDE to save my Colapsed/Expanded... I use it as a way to see the areas I'm working on "right now"...
Anyway, please add me to the list of wishers for this one!
It was not implemented. If you open the a source code file you will see that expect for a few properties at the beginning the code is just stored as raw text.
The IDE by default collapses explicit #regions. It is possible to store the status of each sub at the beginning. However it is a bit too cumbersome...
I think IDEs like Visual Studio do this with some binary data tossed at the beginning of the file to store what subs are collapsed. I'd store it at the sub level myself- Something like -sub means collapsed when there is a minus before the sub. It is still displayed in the IDE as just sub though. Just a one char flag to store the state.