Recent

Author Topic: About code folding  (Read 480 times)

yinhuajian

  • New Member
  • *
  • Posts: 10
About code folding
« on: September 09, 2025, 04:10:57 am »
Is there a shortcut key or menu option to quickly collapse all code? I only want to see the function definitions.

LV

  • Sr. Member
  • ****
  • Posts: 358

dbannon

  • Hero Member
  • *****
  • Posts: 3556
    • tomboy-ng, a rewrite of the classic Tomboy
Re: About code folding
« Reply #2 on: September 09, 2025, 07:24:53 am »
Alt-G will show a window with the Method List.

Davo
Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 11793
  • Debugger - SynEdit - and more
    • wiki
Re: About code folding
« Reply #3 on: September 09, 2025, 08:43:33 am »
Is there a shortcut key or menu option to quickly collapse all code? I only want to see the function definitions.

Yes (more or less), "Fold to level".
I am not sure if a (or which) key is assigned. You need to check that in: Tools > Options > Editor > Keymap: (search for "level")

Then you need to find the "level" for the procedures.
E.g. if your fold config includes "unit section" then procedures may be the 2nd level, otherwise they may be the first level (nothing that will fold outside them).

Of course, if you have "class" fold too, then they may also fold at that level.

yinhuajian

  • New Member
  • *
  • Posts: 10
Re: About code folding
« Reply #4 on: September 09, 2025, 09:47:03 am »
Thank you, you've helped me solve this problem.

 

TinyPortal © 2005-2018