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}MyMethood2) 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-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20130910/0de9372e/attachment-0001.html> -------------- next part --------------
A non-text attachment was scrubbed...
Name: dgegbjdb.png
Type: image/png
Size: 3660 bytes
Desc: not available
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20130910/0de9372e/attachment-0001.png>
