How to go to previous location in Visual Studio code (VS code)

If I accidentally press any key, and the cursor moves to another place, how can I return to the previous place? What is a shortcut key?

Any extension that might help.

Thanks.

+7
visual-studio-code vscode-extensions
source share
1 answer

Mac: Ctrl + -

Windows: Alt + Left

Linux: Ctrl + Alt + -

Key bindings for Visual Studio code

+16
source share

All Articles