Eclipse IDE 上次编辑位置历史记录 - 后退多个步骤?

发布于 2024-11-26 09:23:56 字数 329 浏览 1 评论 0原文

我现在正处于从 Netbeans 过渡到 Eclipse (Indigo) 的过程中。

Ctr+Q 似乎具有相同的功能 - 返回到上次编辑位置。但在 Netbeans 中,我可以反复按 Ctr+Q 并进一步返回,而无需更改文件内容(撤消>重做黑客)。

Eclipse中有这样的功能吗?

一些信息:

我正在使用 JavaScript 开发工具包、PDT 和 YAML 编辑器。

I'm now in a process of transition from Netbeans to Eclipse (Indigo).

Ctr+Q seems to have the same function - going back to the last edit location. But in Netbeans I was able to press Ctr+Q repeatedly and go further back without the need of altering the file content (undo and redo hack).

Is there such functionality in Eclipse?

Some info:

I'm using the JavaScript Development Toolkit, PDT, and YAML editor.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

往日 2024-12-03 09:23:56

看起来后退操作(Alt+Left)或多或少是相同的。不同之处在于它跟踪任何操作,而不仅仅是编辑。 “转到声明”等操作也包含在 Alt+Left 的历史记录中。

我认为,在某种程度上,它更有用,因为我可以跟踪我在“真实浏览”代码中的真实操作。不过我会切换上次编辑上一个操作的键盘快捷键,以便保持Ctr+Q习惯。

It seems that Back action (Alt+Left) is more or less the same. The difference is that it tracks any action, not only edits. Actions as "Go to declarations" are also included in the history of Alt+Left.

I think, in a way, it's more useful because I track back my real actions as in "real browsing" the code. Though I will switch the keyboard shortcuts for Last Edit and Previous Action so that I keep the Ctr+Q habit.

﹂绝世的画 2024-12-03 09:23:56

目前在 Eclipse 中还不可能。有一个针对此功能的旧功能请求,Bugzilla id 72773 (https://bugs .eclipse.org/bugs/show_bug.cgi?id=72773)。

It is currently not possible in Eclipse. There is an old feature request for this functionality with Bugzilla id 72773 (https://bugs.eclipse.org/bugs/show_bug.cgi?id=72773).

生生漫 2024-12-03 09:23:56

9 年后,请查看 Eclipse 4.17 (2020_09 )

多个上次编辑位置

上一个编辑位置导航(以前称为上一个编辑位置)现已扩展,可以记住多个编辑位置。
现在可以记住最后 15 个编辑位置。

为了方便起见,彼此非常接近的相似编辑位置也会合并,以便 15 个记住的位置中的每一个都保持不同。

“新菜单项:上一个编辑位置”"

如何使用

引入了两个新的键盘快捷键:

  • Ctrl+Alt+LEFT_ARROW(或在 Mac 上Ctrl+Opt +LEFT_ARROW) 导航到最近的编辑位置,就像Ctrl+Q 在之前的版本中始终具有。
    但是,现在继续按住 Ctrl+Alt,然后再次按 LEFT_ARROW 开始遍历先前编辑位置的历史记录,每按一次LEFT_ARROW 将历史向前推进了一步。
    一旦遍历停止,未来的 Ctrl+Alt+LEFT_ARROW 操作现在会暂时锚定到这个较旧的历史位置,以便于探索该代码区域。< /里>

经典的 Ctrl+Q 映射同样通过此新功能得到增强,因此 Ctrl+QCtrl+Alt+LEFT_ARROW 是同义词。

  • Ctrl+Alt+RIGHT_ARROW(或在 Mac 上Ctrl+Opt +RIGHT_ARROW) 相反,在编辑历史记录中向前移动锚点,因此在向后遍历之后Ctrl+Alt+LEFT_ARROW,您可以按住Ctrl+Alt 并重复按 RIGHT_ARROW
    同样也为此向前导航添加了一个新的菜单项。

新的编辑位置始终插入到末尾,因此始终保持原始的历史顺序。
新的编辑还会将最后一个位置“锚点”重置回最近的编辑,以便再次按 Ctrl+Alt+LEFT_ARROW 即可为您带来到最近的编辑而不是历史编辑。

9 years later, check out Eclipse 4.17 (2020_09)

Multiple Last Edit Locations

Previous Edit Location navigation (formerly named Last Edit Location) is now expanded to remember multiple edit locations.
The last 15 edit locations are now remembered.

For convenience, similar edit locations in close proximity to each other are also merged so that each of the 15 remembered locations remains distinct.

new menu item: Previous Edit Location

How to use

Two new keyboard shortcuts are introduced:

  • Ctrl+Alt+LEFT_ARROW (or on Mac Ctrl+Opt+LEFT_ARROW) navigates to the most recent edit location, just as Ctrl+Q always has in prior releases.
    However, now continuing to hold Ctrl+Alt and then pressing LEFT_ARROW again begins a traversal through the history of prior edit locations, with each additional press of LEFT_ARROW moving a step further back in history.
    Once traversal stops, future Ctrl+Alt+LEFT_ARROW actions are now temporarily anchored to this older historical location for easy exploration of that code region.

The classic Ctrl+Q mapping has been likewise enhanced with this new functionality, so that Ctrl+Q and Ctrl+Alt+LEFT_ARROW are synonymous.

  • Ctrl+Alt+RIGHT_ARROW (or on Mac Ctrl+Opt+RIGHT_ARROW) conversely moves the anchor forward through edit history, so after traversing backward with Ctrl+Alt+LEFT_ARROW, you can go forward again by holding Ctrl+Alt and repeatedly pressing RIGHT_ARROW.
    A new menu item has likewise been added for this forward navigation as well.

New edit locations are always inserted at the end, so original historical ordering is always maintained.
New edits also reset the last location "anchor" back to the most recent edit, so that pressing Ctrl+Alt+LEFT_ARROW once again brings you to the most recent edit rather than a historical one.

红墙和绿瓦 2024-12-03 09:23:56

如果您丢失了撤消重做功能,您可以使用本地历史记录。
为此:1/右键单击代码上的任意位置,2/团队,3/显示本地历史记录,然后根据编辑时间选择所需的版本。

You can use the local history if you lost your undo redo functions.
to do that: 1/ right click anywhere on your code, 2/ Team, 3/ Show Local History, then choose the version you want according to edit time.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文