Hi,
There are times when having the capability to collapse a section of code, part of the #IF directive, would help to concentrate on specific code blocks.
I mean, something like #Region or Subs.
The IDE already knows which compiler we are using (and correctly highlight the proper code), so it could collapse (and expand on a given click) the code pertaining to a different enviroment.
let's say we're using B4J.
There are times when having the capability to collapse a section of code, part of the #IF directive, would help to concentrate on specific code blocks.
I mean, something like #Region or Subs.
The IDE already knows which compiler we are using (and correctly highlight the proper code), so it could collapse (and expand on a given click) the code pertaining to a different enviroment.
let's say we're using B4J.
B4X:
Sub MyTestSub
#IF B4A
' code specific to B4A
'---
'...
#ELSE IF B4J
' code specific to B4J
'---
'...
#END IF
' code common to all platforms
end sub
Having the capability to collapse the B4A section of code would make the sub more readable while in the B4J IDE.
For larger sections probably it's easier to define a #Region where to put all the code specific to a given enviroment.