How to Show Line Numbers In Studio

Started by MrLeadFoot, August 23, 2019, 03:56:08 PM

Previous topic - Next topic

MrLeadFoot

Whenever scripts contains an errors are run, an error message is displayed which often presents the line number in the code, yet I can't figure out how to display line numbers in Studio. Can someone please share how to do that? Thanks.


MrLeadFoot

OK, so no line numbering feature (which is odd since all code environments I've seen, even web design software, has line numbering), but at least there's a workaround.  ;)

Thank you so much for the reply.

td

I usually type the ctrl+g key combination and enter the line number into the "Go to line" dialog and press return.
"No one who sees a peregrine falcon fly can ever forget the beauty and thrill of that flight."
  - Dr. Tom Cade

MrLeadFoot

Quote from: td on August 26, 2019, 08:47:15 AM
I usually type the ctrl+g key combination and enter the line number into the "Go to line" dialog and press return.
Good idea. Thank you, Td.

pguild

I wish Winbatch would add the feature of automatically jumping to the offending line number.  :)
I included that feature in a little utility I created around 1988 for creating assembly language executables.
It's funny how a little thing like that can reduce the friction and make compiling and fixing errors almost enjoyable.

The utility I created actually invoked the assembler program and then captured the output. It grabbed the line number from the error message, and then opened the editor and jumped to that line number.  A full function editor was included with the platform I was used to create the utility.

It was easy because I was using Turbo Prolog at the time, which had some built-in features that made that easy.
(PROLOG = Programming in Logic). 
www.DogTrainingPsychology.com -- "Don't wish it were easier, wish you were better."  as aphorism by Jim Rohn as quoted in the Kindle Book, GEMS OF WISDOM by Philip Seyer