Wish Expand/Collapse conditional compilation sections

Misterbates

Active Member
Licensed User
Would be great if the development environment would allow expand/collapse on conditional compilation statements, so that if I have a single source with sections specific to B4i/B4a etc. I can click a + or - to hide the conditional section.

Even better if there was some way to expand/collapse all at once, so that I could view/print the B4i version of the source, the B4a version etc.
 

Misterbates

Active Member
Licensed User
Apologies, but how? I don't see +/- next to #If/#Else/#End If statements? And I see expand all/collapse all but I don't see "expand all B4i" or "collapse all B4A" ...
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
Excluded code can be collapsed (this is from B4J):

SS-2017-09-28_15.54.12.png
 

Misterbates

Active Member
Licensed User
Aha. After a bit of playing around, the +/- only appears if two or more consecutive lines are excluded, and there's not an option to collapse all excluded code. I'd like to amend my wish please:

1) Be able to collapse excluded code even if only one line is excluded - I have quite a few code sections that look similar to:
B4X:
#If B4i
        lblSized.Font = Font.CreateNew(myTextSize)
#Else
        lblSized.TextSize = myTextSize
#End If

2) Add items to the Edit/Outlining menu to "Expand excluded lines" and "Collapse excluded lines".

Thanks!
 
Top