I Ctrl + click through various function definitions, in Go. Sometimes I drill too deep. I want to move up the stack of visited files. How do I do this in VS Code?
You can use workbench.action.navigateBack
and workbench.action.navigateForward
to quickly move back and forth between recent cursor positions.
workbench.action.navigateBack
is Alt+LeftArrow
workbench.action.navigateForward
is Alt+RightArrow
If your mouse has buttons on the side, you can use them in place of the above keybindings.
To assign your custom key combinations, just like the @Virmundi mentioned, click on the
File -> Preferences -> Keyboard Shortcuts.
or just press CTRLK + CTRL S
Type workbench.action.navigateBack
double click on the found line and assign your shortcut key combination for moving backward.
Similarly, type workbench.action.navigateForward
and assign your key for moving forward.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With