Question Evan Gabhart · Feb 6, 2023

Jumping to line using tag + offset in VS Code

How would one jump to a particular line by typing a tag and adding an offset in VS Code (zMethodName + n)? I know this can be done in Studio and would be particularly helpful for debugging error messages.

Comments

Timothy Leavitt · Feb 6, 2023

Here's a quick example. In short:

  • View Other
  • Click in the document
  • Click the thing that shows up in the bottom status bar
  • Enter routine + offset (e.g., copy/paste from error message) and hit enter.

It would be nice if this was available via quick pick based on the isfs context (including the routine, not just the tag+offset).

0
Evgeny Shvarov  Feb 7, 2023 to Timothy Leavitt

Sounds like a good enhancement request.

I'd place this as a embedded link (like debug and copy invocation) but above the classname, like "goto line" - you click it, place the copied debug string and it goes to the line. And opens "Other code" in neighbor window if needed.

0
Alexey Maslov  Feb 8, 2023 to Timothy Leavitt

It would be nice if this was not be hidden when View -> Output panel is visible.

0
Stephen Canzano · Feb 6, 2023

somewhat related, I commonly used in the past in IRIS Studio CRTL-G (goto) to jump to an entity within a class or routine.  This dialog 

allow you to goto either a Line Number or Tag or Label.

I wanted to be able to do the same in VS Code and found by looking at

https://code.visualstudio.com/shortcuts/keyboard-shortcuts-windows.pdf

in VS Code you can use CTRL-SHIFT-O.

This isn't exactly your question but the link to the shortcuts is useful and for me, CTRL-SHIFT-O is what I was looking for as I wanted to jump around without using my mouse.

0