tags:

views:

30

answers:

3

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

+1  A: 

In Eclipse 3.5 there are some bookmarks related actions cthat can be linked to key shortcuts: to bind them you have to go to preferences->general->keys and use the word "bookmark" as filter.

Saluti

cerealk
+1  A: 

Not exactly.

You can only assign a shortcut to add a new bookmark (like I did in the picture below).
But you can go to the bookmark you have just defined only through the "Bookmarks" View (the second shortcut would only display the Bookmark view)

alt text

VonC
The annotation preferences (General -> Editors -> Test Editors -> Annotations) has a "Include in the next/previous navigation" which might help. (Ctrl+, / Ctrl+.)
Andrew Niefer
+1  A: 

I don't think so. You can assign a shortcut to make bookmarks, but I don't think you can specify a hotkey for each individual bookmark you create.

In Eclipse 3.5, if you go to Windows > Preferences > General > Keys you'll find the Add Bookmark command. Add a hotkey in that dialog.

Then go to Window > Show View > Other... > Bookmarks to display the bookmarks tab.

Eclipse bookmarks tab

As you would probably expect, double-clicking the entries in the bookmarks tab takes you to the bookmarked line of code.

Bill the Lizard