B4J Tutorial How to "Collapse All" with a single key

How to "Collapse All" with a single key

While developing pages for ABMaterial, I frequently use Edit->Outlining->Collapse All to condense the source and navigate between sections.



Collapse All
Today there is no hot-key in the IDE to "Collapse All". Instead you can press [CTRL] [SHIFT] [O] a couple times to "Toggle All" and get the same result. But that's still a bit of keyboard yoga.

Here's how can you map "Collapse All" to a single key with a clever project from Instructables.

Instructables - Making a Powerful Programmable Keypad
http://www.instructables.com/id/Making-a-powerful-programmable-keypad-for-less-tha/?ALLSTEPS

I have the Targus keyboard shown in the article. It's magic with HID Macros. I not only use it for collapsing code but other tricks as well.



HID Macros
http://www.hidmacros.eu/whatisit.php
 
Last edited:

stanmiller

Active Member
Licensed User
Longtime User
Another option:
Alt + E + O + C (edit - outlining - collapse all)

Even better. I often forget about the accelerator path through menus.

Here's the HID sequence:

HIDMacros.SendKeys "%eoc"
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…