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

kimsagro picture kimsagro · Feb 16, 2016 · Viewed 163.9k times · Source

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

Answer

zdenek picture zdenek · Feb 16, 2016

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