IDE library navigation

In the IDE, one can right click on a token, and a menu appears that offers to take use to its definition.

On selecting, "Go to Definition", we get a new tab showing the content of that library and it is positioned at the definition.

Wonderful.

Now the problem.

If click on a token within that definition, as often as not, we wind up positioned somewhere else in that same file in that same window.

How do we navigate back to where we were?

Try Alt + left arrow

1 Like

Nothing happens.

Environment: Linux Fedora 40, Cinnamon desktop

Hi @DrN.

This explains it. Alt+ is the "Editor: Go Back" keyboard shortcut on Windows (I didn't check what it is on macOS), but that command has a different keyboard shortcut on Linux. The Linux shortcut is Ctrl+Alt+-. Please give that a try.


Something else you might find useful is selecting Peek > Peek Definition from the menu instead of "Go To Definition". This will show the definition/declaration of the object in a inline "peek" view in the editor instead of changing your position in the editor:

Yes that is fantastically helpful, i have been using it.

1 Like