Just right click the foldgutter (the small vertical space containing the [+] and [-])

And select "Fold inactive IFdef"




Note:

1) single line entries can not fold
a:= {$IFDEF Foo} @{$ENDIF}MyMethood

2) if you have code after the EndIf of a multi-line ifdef, then this code will be in the fold too

 {$IFDEF Foo}
  // code here
 {$ENDIF}  // more code on this line
 
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to