U ukimiku Active Member Licensed User Longtime User Jul 5, 2012 #1 Is there a way to make the IDE remember which subs I had folded when I quit the IDE? Now every time I open the source again, all subs appear "unfolded" again. Thanks. Regards,
Is there a way to make the IDE remember which subs I had folded when I quit the IDE? Now every time I open the source again, all subs appear "unfolded" again. Thanks. Regards,
Erel B4X founder Staff member Licensed User Longtime User Jul 5, 2012 #2 You can use #Region to create collapsible regions. These regions will be folded by default: Code: Copy #Region optional text Sub ... ... ... #End Region Upvote 0
You can use #Region to create collapsible regions. These regions will be folded by default: Code: Copy #Region optional text Sub ... ... ... #End Region
U ukimiku Active Member Licensed User Longtime User Jul 5, 2012 #3 Thanks. Is there documentation on features like the one you mentioned? Regards, Upvote 0
nfordbscndrd Well-Known Member Licensed User Longtime User Jul 5, 2012 #4 ukimiku said: Thanks. Is there documentation on features like the one you mentioned? Click to expand... The "sticky" at the top of this forum, How To Ask A Question, has links to documentation. If you click on the Documentation Wiki link (in yellow near the top of each page), you can click on IDE for the Outlining information. Upvote 0
ukimiku said: Thanks. Is there documentation on features like the one you mentioned? Click to expand... The "sticky" at the top of this forum, How To Ask A Question, has links to documentation. If you click on the Documentation Wiki link (in yellow near the top of each page), you can click on IDE for the Outlining information.
M Mahares Expert Licensed User Longtime User Jul 5, 2012 #5 Just in case you still need clarifications: 1. For example type: #Region MyHiddenSubs right above the first Sub you want to collapse. 2. At the end of that sub type: #End Region 3. When you want to collapse, click the - (minus) sign to the left of #Region. To Unhide, click the + (plus) sign. If you want to hide (collapse) a few subs, make sure they are contiguous, in sequence, see below: Code: Copy #Region MyHiddenSubs 'MyHiddenSUbs can be any text you enter. Sub MySub1 . End Sub Sub MySub2 . End Sub #End Region Upvote 0
Just in case you still need clarifications: 1. For example type: #Region MyHiddenSubs right above the first Sub you want to collapse. 2. At the end of that sub type: #End Region 3. When you want to collapse, click the - (minus) sign to the left of #Region. To Unhide, click the + (plus) sign. If you want to hide (collapse) a few subs, make sure they are contiguous, in sequence, see below: Code: Copy #Region MyHiddenSubs 'MyHiddenSUbs can be any text you enter. Sub MySub1 . End Sub Sub MySub2 . End Sub #End Region
Erel B4X founder Staff member Licensed User Longtime User Jul 5, 2012 #6 The site search works quite good. If you search for: Basic4android Search: Sub Folding then the first result mentions #Region directive. Searching for Basic4android Search: Sub Collapse will point you to several similar discussions. Upvote 0
The site search works quite good. If you search for: Basic4android Search: Sub Folding then the first result mentions #Region directive. Searching for Basic4android Search: Sub Collapse will point you to several similar discussions.