In Visual Studio Code, is there a keyboard shortcut to navigate (move cursor) to the last edited position (like in all Jetbrains products with Ctrl+Shift+Backspace)?
For Windows use Alt+RightArrow
and Alt+LeftArrow
.
[EDIT]: v1.28.0 just added a command to go back to the last edited position, see release notes: navigate back to last edited position.
Navigate to last edit location
A new command Go to Last Edit Location (
workbench.action.navigateToLastEditLocation
) was added to quickly navigate to the last location in a file that was edited. The default keybinding is
Ctrl+K Ctrl+Q
Previous answer: I don't think there is a built-in way to move between edits, but I could be wrong. Otherwise, see edit history extension which also allows you to move between edits in other files if you wish as well as strictly within the current file.