Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse: How to jump to last edit location in current editor?

Tags:

eclipse

Ctrl+Q may redirect to another editor, but I want to stay with current one but jump to place of last edit, for currently opened editor.

Is it possible? Maybe some plugins could do this?

like image 806
Sergey Stolyarov Avatar asked Jun 01 '11 05:06

Sergey Stolyarov


People also ask

How do I see previous locations in Eclipse?

The key combination Ctrl + Q brings you back to the last locations, where editing was done. Use Ctrl + L for an overview of shortcuts. See also Eclipse shortcuts or this Eclipse cheat sheet.

How do I forward and go back in Eclipse?

Ctrl+F7/Ctrl+Shift+ F7 Switch forward / backward between views (panels). Useful for switching back and forth between Package Explorer and Editor.

How do I navigate code in Eclipse?

Shift + Ctrl + T : search and open a Java Type (note that it won't search on JSPs, XML files, etc. only will search the classes declared) Ctrl + F6 : Opens a dropdown with the list of open files (so you can change from one to another). Ctrl + F7 : Dropdown with the available views.


3 Answers

You can use ALT + LEFT and ALT + RIGHT to jump back and forth, though this also involves editor changes, so might not be exactly what you are looking for.

like image 189
Dirk Avatar answered Sep 22 '22 19:09

Dirk


If I understand you correctly, Ctrl-Q is switching to another editor for you (leaving eclipe), rather than going to the last change you made within eclipse. The default key combo for going to the last change you made IS Ctrl+Q in eclipse, for most people this is all you need. Sounds like you've got a special situation though. In your case, I would suggest going to Window - Preferences - General - Keys - and then start typing "Last" (or scrolling down) to find Last Edit Location in the list. Then you can set it to whatever you want and use that instead of undoing and redoing changes.

like image 36
htrufan Avatar answered Sep 22 '22 19:09

htrufan


Uhm, as in, undo and then redo. That is, press Ctrl + Z, and then Ctrl + Y.

like image 30
bgh Avatar answered Sep 23 '22 19:09

bgh