How to navigate back to the last cursor position in Visual Studio Code

visual-studio-code

What is the keyboard shortcut navigate back to the last cursor position in Visual Studio Code?

Best Answer

The keyboard shortcut commands are Go Forward and Go Back.


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