Page 1 of 1
Forum

Welcome to the Tweaking4All community forums!
When participating, please keep the Forum Rules in mind!

Topics for particular software or systems: Start your topic link with the name of the application or system.
For example “MacOS X – Your question“, or “MS Word – Your Tip or Trick“.

Please note that switching to another language when reading a post will not bring you to the same post, in Dutch, as there is no translation for that post!



Share:
Notifications
Clear all

[Solved] Lazarus Pascal - How to collapse all procedures with a single click

1 Posts
1 Users
0 Reactions
953 Views
 Hans
(@hans)
Famed Member Admin
Joined: 12 years ago
Posts: 2854
Topic starter  

I really like having all my procedures and functions collapsed until I really need to dig in.
As it took me a while to figure out, and since I keep forgetting, here a trick (and a point to discover more options);

With SHIFT+ALT+1 we collapse all root level collapsable items (eg. mostly your procedures and functions)

How to ...

Go to the Lazarus Settings menu and open the section "Editor" - "Key Mappings".
In the filter box type "fold" so you can see what keys have been assigned.

To assign one or more key combo's, double click the command you're looking for, for example "Fold to Level 1" and a window opens.

Under the section "Key" you will see Shift, Alt, Ctrl, Meta (Cmd or Apple Key), an edit box and a "Grab Key" button.

Press SHIFT+ALT+1 (for this example) and it registers the key stroke. Click OK and you're done for this command. (I use SHIFT+ALT+0 to "Unfold All", set in a similar fashion).

When you're done assigning keys, click "OK".

In case this folds too much to your liking, you can fine tune this:
Go to the Lazarus Settings menu and open the section "Editor" - "Code Folding", and check/uncheck which ever you like.


   
ReplyQuote
Share: