Reputation: 47212
When we right click and select Go to definition
in VSCode, it opens the new file in place of the current. How do we navigate back to where we came from?
Upvotes: 3
Views: 2313
Reputation: 139
On Windows:
Alt + ← .. navigate back
Alt + → .. navigate forward
On Mac:
Ctrl + - .. navigate back
Ctrl + Shift+ - .. navigate forward
On Ubuntu Linux:
Ctrl + Alt + - .. navigate back
Ctrl + Shift + - .. navigate forward
Upvotes: 4
Reputation: 2713
On Windows, it's Alt+LeftArrow
, just like navigating backwards in a web browser.
Upvotes: 1