Go from an error to its line
When a compiler or a test names a file and a line, you need not type it. In the terminal, ⌘↑ highlights the newest command, Tab steps to each file its output names, and F4 opens the one you are on in the editor, at that line and column.
- F3 opens it in the viewer at the line instead, and Enter puts a pane’s cursor on it.
- ⌘-click a name in any command on the screen to put a pane’s cursor on it, without stepping there first.
- A name is read from the folder the command ran in, so
src/server.goworks as well as a full path. It needs the shell’s integration, which tells the terminal where each command starts and ends.
More on this: Commands and their output.