Eclipse中的书签,使用热键设置和使用,它们是否存在? [英] Bookmarks in Eclipse, set and go using hotkeys, do they exist?

查看:179
本文介绍了Eclipse中的书签,使用热键设置和使用,它们是否存在?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



说, Ctrl + Shift + 1 =设置1书签



Ctrl + 1 =转到第一个书签已设置

解决方案

是的。您需要为添加书签设置快捷键。转到窗口>首选项>常规>键,然后输入文本过滤器书签。 添加书签将被列出,选择它。现在,在绑定中绑定一个新的快捷方式。确保没有冲突。





将快捷方式分配给列出所有书签的显示视图(书签)也是一个好主意。或者,可以通过窗口>显示视图>其他(快捷方式 Alt + Shift + Q Q )>并过滤到书签。



从这里开始,您可以设置新的书签。您可以使用下一个注释 Ctrl + 导航这些书签。



kbd>和上一个注释 Ctrl + 您需要首先通过下拉列表启用跳到书签这两个在注释工具栏中:





图片来源:教程由vogella



所以选择两个下拉列表中的任一个并启用书签:





如果您不想要其他注释例如错误和警告将被包括在导航中,在下一个/上一次注释的工具栏下拉列表中禁用它们。



下一个/上一个注释的快捷方式可以所以在首选项中改变。他们的类别是导航,当:在Windows 中,您可以过滤到他们的名字: Next 上一个


Bookmarks in Eclipse, set and go using hotkeys, do they exist?

Say, Ctrl+Shift+1 = Set 1 bookmark

Ctrl+1 = go to the place first bookmark was set

解决方案

Yes. You need to set a shortcut key for Add Bookmark. Go to Window > Preferences > General > Keys and enter the text filter "bookmark". Add bookmark will be listed, select it. Now bind a new shortcut in Binding. Make sure that there are no conflicts.

It may be also a good idea to assign a shortcut to "Show View (Bookmarks)" where all your bookmarks are listed. Alternatively this can be enabled via Window > Show view > Other (shortcut Alt+Shift+Q, Q) > and filter to "bookmark".

From here on, you can set new bookmarks. Eclipse will want you to name your bookmarks.

You can navigate these bookmarks, using "Next Annotation" Ctrl+. and "Previous Annotation" Ctrl+, but you need to enable jumping to bookmarks first via the dropdown of these two in the annotations toolbar:

image source: tutorial by vogella

So select any of the two dropdown and enable "Bookmarks":

If you don't want other annotations such as Errors and Warnings to be included in the navigation, disable them in the toolbar dropdown for next/previous annotation.

The shortcut for Next/Previous Annotation can also be changed in the Preferences. Their category is Navigate, when: In Windows, you can filter to their names: Next and Previous.

这篇关于Eclipse中的书签,使用热键设置和使用,它们是否存在?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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