parallaxinc / Propeller-Tool

Propeller Tool software for Windows
MIT License
9 stars 2 forks source link

Add Expand/Collapse source features #83

Open PropGit opened 3 years ago

PropGit commented 3 years ago

From user "Ted":

I often wish navigating around the code had some additional features. I find myself paging up and down past many hundreds if not a thousand lines of code to look between the method I am working on and the method calling it. The 'Full Source' and 'Summary view' is very helpful for navigation. I wondered about having the ability to collapse and expand or group/ungroup hide/unhide either individual methods or selected lines of code. I attached a screen clipping of how Notepad++ automatically groups functions and gives the ability to collapse them.

PropGit commented 3 years ago

Thanks.  I'll look into what it would take to expand/collapse.  I do find this helpful in some cases while using other tools/languages that support it; however, if the two areas of interest don't naturally fit on-screen (or within two pages) then I think it's still lacking something.  I'll ponder this some more.

PropGit commented 3 years ago

Have you known about or tried the bookmarking feature?  Turn on the bookmark bar (in preferences > Show Bookmarks), or press Ctrl + Shift + B, and click in the gutter (left of the source), or press Ctrl+B, to set or clear a numbered bookmark.  Then at any time, press Ctrl + # (where # is the number of the desired bookmark) and be instantly transported to that line.  I often do this to toggle quickly back and forth between two places of interest in the source I'm working on at the moment.