Going back to the last text file or folder within the same project

Is there a way to go back to (or toggle between) a previous file/folder within the same project? More specifically, I tend to click on another text selection or another folder to look something up and then forget which folder I was in previously. It would be helpful if there is a command to go back to the last selection or to toggle back and forth. Many thanks for all answers and suggestions.

Cmd-[ and Cmd-] are the shortcuts.


1 Like

Works like magic. Thank you!

There are also corresponding Back and Forward history buttons at the top of the Editor pane that work just like the Back/Fwd buttons in your web browser work.

1 Like