score:112

Accepted answer

go to preferences / general / keys. you'll be able to see or edit the bindings for:

  • backward history: default is alt
  • forward history: default is alt

you may also use those shortcuts (and see the key bindings) in the toolbar:

enter image description here

score:6

in mac (osx), the commands are ⌘[ and ⌘]. they are very convenient navigation commands when coding.

score:10

i'm adding an answer, because i'm not allowed to comment yet. though the dystroy's answer contains information about useful shortcuts, i'm not satisfied with it, because the mentioned alt+left shortcut doesn't always navigate to the last cursor position (e.g. in the same file). i'm not sure how it works in visual studio, but in intellij a similar shortcut always moved the cursor to the last cursor position, even in the same file. i would like to have such functionality also in eclipse. for example: i move the cursor using the keyboard's down arrow key successively on lines 10, 20, 30. now i am on line 30 and when i press alt+left i would like the cursor to go to the line 20. after pressing alt+left again i would like the cursor to go to line 10.

in eclipse, when the cursor was in file a and i opened file b and moved the cursor down a few lines in file b, then alt+left will move the cursor to the file a, instead of moving it to a previous cursor position in file b.

i created a separate question for this problem: how to navigate to the last cursor position in eclipse if it is in the same file and was not edited?

score:14

there is altleft arrow and altright arrow to navigate to previous/next cursor positions, and ctrlq to go to the last edited position.


Related Query

More Query from same tag