keyboard shortcut for go back to last edited position in Visual Studio Code

后端 未结 2 1794
滥情空心
滥情空心 2021-01-07 17:12

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)?

相关标签:
2条回答
  • 2021-01-07 17:53

    For Windows use Alt+RightArrow and Alt+LeftArrow.

    0 讨论(0)
  • 2021-01-07 18:15

    [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.

    0 讨论(0)
提交回复
热议问题