remy / vscode-nextbasic

VS Code tools for NextBASIC
https://marketplace.visualstudio.com/items?itemName=remysharp.nextbasic
8 stars 2 forks source link

How to GOTO when #autoline used #44

Closed BozRetro closed 4 months ago

BozRetro commented 6 months ago

Hi there!

Great extension for VSCode..., thank you Remy for putting it all together!

Quick (and probably dumb) question; When I use the #autoline command, how do I know where to GOTO when I need to? The "hard way" of course is to count the number of executable lines and "do the maths", but is there an easier way of referencing lines? Maybe I've missed some documentation somewhere...

Cheers, Boz.

BozRetro commented 6 months ago

Solution found.

remy commented 4 months ago

Might be useful to share the solution you found (just for other), but pleased you're sorted either way.

BozRetro commented 4 months ago

Good idea, remy :) Labels, basically. Introduced in 2.08:

myLabel: PRINT "Hello forever! "; GO TO myLabel