返回到 Visual Studio Code 中上次编辑位置的键盘快捷键 [英] keyboard shortcut for go back to last edited position in Visual Studio Code

查看:51
本文介绍了返回到 Visual Studio Code 中上次编辑位置的键盘快捷键的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 Visual Studio Code 中,是否有一个键盘快捷键可以导航(移动光标)到最后编辑的位置(就像在所有 Jetbrains 产品中使用 Ctrl+Shift+<代码>退格键)?

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

CTRL+- 快捷键移动到最后一个位置(不是最后编辑的位置),对我来说用处不大.

The CTRL+- shortcut moves to the last position (not the last edited position), which is less useful for me.

我正在使用视觉工作室代码Visual Studio Code 的 JetBrains IDE 键盘映射:

i am using with Visual Studio Code JetBrains IDE Keymap for Visual Studio Code:

Visual Studio 代码版本 1.23.1提交 d0182c3417d225529c6d5ad24b7572815d0de9ac基准 2018-05-10T17:11:17.614Z壳牌 1.7.12渲染器 58.0.3029.110节点 7.9.0架构 x64

Visual Studio Code Version 1.23.1 Commit d0182c3417d225529c6d5ad24b7572815d0de9ac Datum 2018-05-10T17:11:17.614Z Shell 1.7.12 Renderer 58.0.3029.110 Node 7.9.0 Architektur x64

推荐答案

: v1.28.0 刚刚添加了返回上次编辑位置的命令,见发行说明:导航回上次编辑的位置.

: v1.28.0 just added a command to go back to the last edited position, see release notes: navigate back to last edited position.

导航到上次编辑位置

一个新命令转到上次编辑位置(workbench.action.navigateToLastEditLocation) 被添加到快速导航到已编辑文件中的最后一个位置.默认的键绑定是

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.

这篇关于返回到 Visual Studio Code 中上次编辑位置的键盘快捷键的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆