Variable highlighting and click-navigation in code editor
Liberty BASIC v4.5.0 has a couple of new cool features to aid in coding.
Variable highlighting
When reading code it can be very helpful to see all the places where a variable is used. Variable highlight provides a new way to do this. Look at the screenshot below. There are a lot of different variables in this example.
Now let's say we want to see all the places where the variable minutes is used in the code. Just double-click on the variable and it will be selected, and then all the other places where the variable minutes is in the code will be highlighted in yellow (like so - minutes) as shown in the screenshot below.
Click-navigation
When a program gets long, it can be cumbersome to jump around in the code. Now in addition to the Go to Branch Label (Alt+G) feature in the Liberty BASIC editor, you can use click navigation. Examine the following screenshot for this line:
print #clock, "trapclose [exit]"
Let's say we want to go look at the [exit] routine. To do this, hold the Ctrl key down and click on the [exit] label in the line of code that we examined. It will jump to the [exit] routine as shown in the next screenshot:
Let's try it again. Notice in the [exit] routine there is a timer statement with a reference to the [display] label? Hold the Ctrl key and click on [display] and the editor will jump to the [display] routine as show in this next screenshot.