51

I am able to set bookmarks in a source file, but are there shortcut keys to navigate to a bookmark ? The navigate menu has a goto line. But that is not useful.

Tapas Bose
  • 28,796
  • 74
  • 215
  • 331
ashitaka
  • 3,928
  • 7
  • 38
  • 43

5 Answers5

52

If you check the "Bookmark" item in the "Next Annotation"/"Previous Annotation" toolbar dropdown item, you can use Ctrl+, and Ctrl+. to navigate to previous/next bookmark in the current opened file.

toolbar

from Tutorial

n611x007
  • 8,952
  • 8
  • 59
  • 102
Willian Mitsuda
  • 1,249
  • 1
  • 12
  • 14
  • This answer works well, but I misinterpreted it at first. I wrongly thought that it meant to press Ctrl and then the plus sign. I thought the comma and the full stop (or period for our US friends) were there for punctuation! Of course, pressing Ctrl then comma or the full stop makes perfect sense, because it allows you to navigate up and down a file in an entirely familiar way. As you would normally do for warnings and errors. – DAB Feb 20 '23 at 11:11
47

There is not a shortcut key but you can make appear a 'Bookmark view' which is located in Window > Show view > Other... and in the dialog inside the General classification, Then just double-click on the desired bookmark to reach it

victor hugo
  • 35,514
  • 12
  • 68
  • 79
6

You can navigate to bookmarks using a plugin like:

http://www.etc.to/eclipse_bookmarks_plugin

rushmore
  • 69
  • 1
1

I am using Quick Bookmarks Plugin which is very handy;

You can create named bookmarks using digits (e.g., 1 to 9):

Example:

Set bookmark #4 with [Alt+4]

Go to bookmark #4 with [Alt+Shift+4]

and so on.

Alisa
  • 2,892
  • 3
  • 31
  • 44
-1

ctrl f2 will create a booksmark shift f2 will navigate through all bookmarks I using eclipse with build id: 20130919-0819

Hope it helps

  • In my Eclipse, Ctrl+F2 does nothing, Shift+F2 does something completely different (related to Javadoc, see [here](http://www.vogella.com/tutorials/EclipseShortcuts/article.html)). – texnic Jul 22 '14 at 21:43