2

Does Eclipse have a command or setting for navigating to the previous file visited? The "Backward History" navigation command (alt-left) goes to the previous "important location" you visited; I don't want this. I don't want to visit multiple locations in the same file. I want to skip to the prior file, even if I've visited multiple locations in the current file.

Is it possible?

Anna Dickinson
  • 3,307
  • 24
  • 43
  • Possible duplicate of [what-is-the-shortcut-key-to-back-to-the-previous-tab](http://stackoverflow.com/questions/5297456/what-is-the-shortcut-key-to-back-to-the-previous-tab), [how-to-navigate-to-the-last-cursor-position-in-eclipse](http://stackoverflow.com/questions/12313308/how-to-navigate-to-the-last-cursor-position-in-eclipse) – Mohit Jain May 21 '14 at 07:16

2 Answers2

4

Click Windows > Preferences. Set short cut for Back command note this is not Backward History(Alt+Left) also give attention on the scope of the command in When column. Avoid short cut duplications.

enter image description here

In addition or more info

  1. You can jump to the last modified location by Ctrl + Q.
  2. Use Ctrl + F6 to cycle through opened editors.
  3. Refer Retain previous open file tab under visible tabs and Eclipse tabs repositionning. Use Ctrl + PageUp and Ctrl + PageDown
Community
  • 1
  • 1
Chandrayya G K
  • 8,719
  • 5
  • 40
  • 68
  • 1
    The 'Back' command does work. I binds a shortcut key to this command, and when I press the key inside the active Java editor, the command is not triggered. It seems that no command handler is activated, and the key event is sent directly to the StyledText control. – frankshaka May 21 '14 at 07:04
  • Yes, it does the same thing for me -- I bound alt+left to "Back", and now it does nothing. Also, the left arrow in my toolbar seems to be bound to "Backward History." – Anna Dickinson May 22 '14 at 14:00
0

The 'Next Editor' command may help you quickly navigate to the most recently used editor, although it does not support re-opening closed editors. To assign a key binding to it, simply open 'Preferences' dialog and navigate to 'General' - 'Keys'.

Eclipse Key Binding Preference For 'Next Editor' Command

frankshaka
  • 611
  • 1
  • 7
  • 12
  • `The 'Next Editor' command may help you quickly navigate to the most recently used editor` **Its wrong** – Chandrayya G K May 21 '14 at 08:56
  • check it. Open 3 files. Visit 1 then visit 3. Activate any other view then press this short cut it will take you to file 1 NOT to 3 which is MOST RECENT. – Chandrayya G K May 21 '14 at 09:36
  • 'Activate any other view then ....' <- Concept stealing. We're talking about "editors" here. Though a view is activated, the editor 3 is still regarded as "the active editor". So it's absolutely right to navigate to the "most recently used editor" which is editor 1. – frankshaka May 21 '14 at 09:45