[Lazarus] Commenting. [folding]
Martin
lazarus at mfriebe.de
Fri Mar 25 11:17:10 CET 2011
On 25/03/2011 09:03, Kjow wrote:
> 2011/3/15 Kjow<antispammoni at gmail.com>:
>> Hi all!
>>
>> Everytime I need to comment a part of the code with (e.g. { ... } )
>> and I have some parts of code "minimized" with the "-"/"+" on the left
>> of editor (Please excuse me, I don't know the technical term - e.g.
>> http://3.bp.blogspot.com/_UuDt8fZYCTg/TDCZtgbGUqI/AAAAAAAAAQ8/HcoRx10cuE0/s1600/lazarus.png
>> on the left of uses, TForm1, etc), just writing the first "{" every
>> part after the "{" "minimized" will expand. This is a little bit
>> annoying...
>>
>> is it possible to mantain minimized codes also inside "comments"?
The term is "folding". and yes there is a problem with all folded blocks
being unfolded, whenever you start a comment. Unfortunately this is not
fixed yet.
However a few tricks that maybe can help.
Depending on OS, you may have to set the keyboard shortcuts in the
options first)
shift-alt-1 => fold all nodes (pascal nodes, not IFDEF)
shift-alt -2 => fold all level 2 nodes (nested nodes)
....
shift alt 0 => unfold all
also you can write the closing "}" first, but it is very easy to forget....
Martin
More information about the Lazarus
mailing list