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

Visual Studio-Code

Visual Studio-Code Problem Overview


If I accidentally press any key and the cursor goes somewhere else, how do I return to previous location? What is shortcut key for that?

Any extension that may help.

Visual Studio-Code Solutions


Solution 1 - Visual Studio-Code

Mac: Ctrl + -

Windows: Alt + Left

Linux: Ctrl + Alt + -

Key Bindings for Visual Studio Code

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionGaneshView Question on Stackoverflow
Solution 1 - Visual Studio-CodeDmitry GorshkovView Answer on Stackoverflow