Eclipse recent files

JavaEclipse

Java Problem Overview


Is there any list of recently opened files in eclipse?

If yes then is there also any shortcut for it?

Frequently I close classes in editor because there are too many of them opened. But in a few minutes I need them again. Maybe you solve this problem differently?

Thanks!

Java Solutions


Solution 1 - Java

  • Probably your best option is to use "Quick Switch Editor" (Ctrl+E) but it displays the opened files only. There you have quick list along with filtering by starting to type first chars of file name. To make it useful, you may increase the size of opened files/windows before closing - Window->Preferences->General->Editors->Number of opened editors before closing. After you reach this threshold the oldest file open is closed in order to make room for newly open one.

  • The list of the files recently opened is displayed in File menu, just before the Exit menu option. There you'll find the already open and last closed files. If you want to use it extensively then you should probably increase the size of the items - Window->Preferences->General->Editors->Size of recently opened files list. You can quickly invoke one of last 9 filed with Alt+F,[Digit].

  • A drawback of third option "Open Resource" (Ctrl+Shift+R) is that the default list looks sorted, so it is not based on the most recent date of use. Also "Open Type" (Ctrl+Shift+T) has a long listing over time and you should enter part of the name to get a shorter match.

My initial comment is based on Eclipse 4.3 Kepler and is applicable to current latest Eclipse (4.5 Mars) too.

Solution 2 - Java

If you click on the File menu, you would see the list of recently used files. By default there are four of them. To increase the no, goto Window-> Preferences-> General -> Editors. You can set to as many as 15

Solution 3 - Java

If you know the class name you can use Ctrl+Shift+T (for classes) or Ctrl+Shift+R fo any other resource file. You don't have to type full name just the uppercase letters. Eclipse shows recently opened file in topmost section and other files in the lower section.

You can also use Ctrl+Q to goto last edit location.

For a complete list of shortcuts goto Help>KeyAssist. Also checkout Tips and Tricks under the same menu.

Solution 4 - Java

I'm using CTRL + F6.

Unfortunately it is not possible to use "regular expressions" as for CTRL + O, but I think this is what are you looking for.

Solution 5 - Java

You can either use the "last edit location" shortcuts on the toolbar (the yellow arrows, alt+left) if you wish to reopen a recently edited file, or use the short list of recently opened under the "File" menu (right above "exit")

Solution 6 - Java

I created a plugin called "RecentEditors" that shows a list of recently closed files, sorted by close time (so the last closed editor is at the top). There is also a command (and keyboard shortcut) to directly re-open the last closed editor.

You find the plugin on the Eclipse Marketplace, and GitHub.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionAndrey MinoginView Question on Stackoverflow
Solution 1 - JavaSvilenView Answer on Stackoverflow
Solution 2 - JavaYanki TwizzyView Answer on Stackoverflow
Solution 3 - JavaanergyView Answer on Stackoverflow
Solution 4 - JavaBetlistaView Answer on Stackoverflow
Solution 5 - JavaKellindilView Answer on Stackoverflow
Solution 6 - JavamihcaView Answer on Stackoverflow