LB Booster
General >> Suggestion Box >> Jump to functions, subs and labels
http://lbb.conforums.com/index.cgi?board=suggestions&action=display&num=1425371644

Jump to functions, subs and labels
Post by Hans on Mar 3rd, 2015, 07:34am

The syntax coloring in v3.00 makes code much more readable. Also the enhancement of the find function of the editor makes it easier to find your way in a large code.

For me the only real thing missing in the editor now is a Jump To listbox/dropbox like in LB, showing the functions, subs and labels. This would make navigating through the code much more eassier.


Hans
Re: Jump to functions, subs and labels
Post by Richard Russell on Mar 3rd, 2015, 08:52am

on Mar 3rd, 2015, 07:34am, Hans wrote:
For me the only real thing missing in the editor now is a Jump To listbox/dropbox like in LB, showing the functions, subs and labels.

I don't know how to create that at an acceptable speed. As you know, the LBB IDE is coded in BBC BASIC - itself a relatively slow interpreted language - and when I tried scanning a large program (with more than 50,000 lines) to generate such a list it took a several seconds!

So I don't think it is going to be practical to add that feature; sorry.

Richard.
Re: Jump to functions, subs and labels
Post by Hans on Mar 3rd, 2015, 09:41am

My largest code is about 5000 lines. I don't think I will ever get to the 10000. I think this is true for most users. LB Builder has a solution that the user decides if or when to use this feature (an update button).

Hans
Re: Jump to functions, subs and labels
Post by Richard Russell on Mar 3rd, 2015, 10:18am

on Mar 3rd, 2015, 09:41am, Hans wrote:
My largest code is about 5000 lines. I don't think I will ever get to the 10000.

Cabinet Planner (main program) is over 60,000 lines! As one of the most important current applications for LBB, every feature I add must work acceptably well with that program (it had major implications for the Syntax Colouring and the right-click Jump To feature):

http://www.cabinetplanner.com/

I do not personally share your opinion that a list of functions, subs and labels would "make navigating through the code much easier". In my experience if you want to jump to a specific place in the program it is usually because the code you are currently viewing contains a reference to it (maybe a function call, or an event target). In that case the right-click Jump To feature provides a quick and convenient way of getting there (and back) without needing a list.

The recent suggestion of incorporating a 'table of contents' in your program is also an excellent one, if there are specific labels, subs and functions that you commonly want to visit. You can format that however you like, providing effectively a highly customisable equivalent of the list you are asking for!

Richard.