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.
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.
This function is called "navigate Back", you find it also in the Key Bindings for Visual Studio Code and more accessible within vscode from the keybindings UI.
OS | default keybinding for navigateBack |
---|---|
Mac | Ctrl + - |
Windows | Alt + Left |
Linux | Ctrl + Alt + - |
OS | default keybinding for navigateForward |
---|---|
Mac | Ctrl + Shift + - |
Windows | Alt + Right |
Linux | Ctrl + Shift + - |