How to go to previous location in Visual Studio Code (VS Code)

如果我不小心按了任何键,光标移到了其他地方,我如何返回到以前的位置?快捷键是什么?

任何可能有帮助的延期。

51407 次浏览

这个函数被称为“导航返回”,您会发现它也在 Key Bindings for Visual Studio Code中,并且在 vscode 中更容易从 keybindings UI 访问。

OS navigateBack的默认密钥绑定
麦克 Ctrl + -
窗户 Alt + Left
Linux Ctrl + Alt + -
操作系统 navigateForward的默认密钥绑定
麦克 Ctrl + Shift + -
窗户 Alt + Right
Linux Ctrl + Shift + -