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

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

Leave a Comment