Eclipse 简明教程

Eclipse - Add Bookmarks

About Bookmarks

Eclipse 编辑器允许您在编辑器内的任何行上放置书签名。您可以将书签用作提醒,并快速导航至文件中的任何行。

Eclipse editors allow you to place a book mark on any line within the editor. You can use bookmarks to serve as reminders and quickly navigate to any line in a file.

Adding a Bookmark

要设置书签,请右键单击您想要放置书签的行的垂直标尺附近,然后选择“添加书签”。在“添加书签”对话框中,输入书签的名称。

To set a bookmark, right-click on the vertical ruler near the line on which you want the bookmark and select Add Bookmark. In the Add Bookmark dialog box enter a name for the Bookmark.

bookmarks 1

书签图标会显示在垂直标尺中。此外,还会在“书签”视图的表格中添加一行。

A bookmark icon appears in the vertical ruler. Also, a row is added to the table in the Bookmarks view.

bookmarks 2

Opening the Bookmarks View

要打开“书签”视图−

To open the Bookmarks view −

  1. Click on the Window menu and select Show View → Other.

  2. In the filter text box enter Bookmark.

  3. Under General, select Bookmarks.

bookmarks 3
  1. Click on OK.

Using the Bookmarks View

“书签”视图会显示放在整个工作区中的资源中的书签。

The Bookmarks view shows bookmarks placed in resources across the workspace.

bookmarks 4

使用“书签”视图,可以通过双击某个书签或右键单击某个书签并选择菜单项“转到”来导航到该书签。

Using the Bookmarks view you can navigate to a bookmark by double clicking on a bookmark or right clicking on a bookmark and selecting "Go to" menu item.