When I Cmd + click
on the line of execution of a function (f()
), it takes me to where the function was defined (f(){}
). It'd be great to have a 'back' button to go back to wherever I was before, now that I've finished looking at the function. Does anyone know of such a feature or a feature that'd help?
P.S. I'm on Mac
It's not a button, but there's a keyboard shortcut: press alt + left arrow, and you'll be taken to the place where you were before. (Browsers and Windows Explorer have this shortcut too - alt + left arrow usually takes you to the previous page, but they also have back buttons)
You're far from alone in missing the "go back" button (that I missed from Visual Studio). Here is one of multiple available VS Code plugins which provides just what you're missing:
https://marketplace.visualstudio.com/items?itemName=nick-rudenko.back-n-forth
You can find other plugins with search for "back button".
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