Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2013-09

Extended Feature, inactive IFDEF: Quick fold all inactive ifdef

4 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Martin

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

-------------- 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>

Reply by email

Mattias Gaertner
to Martin
Just right click the foldgutter (the small vertical space containing the [+] and [-]) And select "Fold inactive IFdef"

I only see one menu item "Hide comments".
The inactive IFDEFs have no folder icon in the gutter.

Show quoted text 11 lines
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

Mattias

Reply by email

Martin
to Mattias Gaertner
Mattias Gaertner wrote 9 lines
On Tue, 10 Sep 2013 22:31:55 +0100 Martin wrote: > Just right click the foldgutter (the small vertical space containing the > [+] and [-]) > > And select "Fold inactive IFdef" I only see one menu item "Hide comments". The inactive IFDEFs have no folder icon in the gutter.

It is only their if there are inactive ifdef in that file, it is per file.

If you have a selection (that I forgot to mention), then it will only check (and act on) the selected text

Reply by email

Mattias Gaertner
to Martin
Show quoted text 15 lines
Martin hat am 11. September 2013 um 11:12 geschrieben: On 11/09/2013 09:18, Mattias Gaertner wrote: > On Tue, 10 Sep 2013 22:31:55 +0100 > Martin wrote: > >> Just right click the foldgutter (the small vertical space containing the >> [+] and [-]) >> >> And select "Fold inactive IFdef" > I only see one menu item "Hide comments". > The inactive IFDEFs have no folder icon in the gutter. It is only their if there are inactive ifdef in that file, it is per file.

?
I assumed so.
It does not even work neither with synedit.pp nor synedit.inc. ?

If you have a selection (that I forgot to mention), then it will only check (and act on) the selected text

?
Mattias
?

Reply by email