visual-studio-codekeyboard-shortcuts

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


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


Solution

  • 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