Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 458
kimsagro Avatar asked Feb 16 '16 05:02

kimsagro


People also ask

How do you get to the last position in Visual Studio?

Go to recent files: (Ctrl + T + R) [Ctrl + T to open search box, then type R] Go to last edit location: (Ctrl + Shift + Backspace) [different from navigate backward, which just goes to last cursor location -- this goes to last place where code was edited]

How do you move the cursor to the end of line in VS Code?

Add cursors to line ends Mine is Visual Studio Code and the exact command for this is "Add cursors to line ends". The shortcut key is Alt + Shift + I (Windows) or Command + Shift + l (Mac).

How do I navigate back in Visual Studio?

ctrl + - (dash) navigates backward. ctrl + shift + - (dash) navigates forward.


1 Answers

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

like image 200
zdenek Avatar answered Sep 24 '22 02:09

zdenek