views:

973

answers:

7

How to switch opened windows in Eclipse? There is Ctrl+F6, but it's asking me which one i want, but i want switch it like tabs in browser or window in operating system (Cmd/Win+Tab) without file-selection from the list. How to do this easy thing in Eclipse?

I've tried to assign hotkey for events: forward forward history next page

but it doesnt work as i want))

+1  A: 

Hold CTRL and press F6 until you reached the editor you want, then release. The UI is not as pretty as the window selection, but the functionality is the same.

Christopher Oezbek
+2  A: 
  • CTRL+E (for a list of editor)
  • CTRL+F6 (for switching to the next editor through a list)
    You can assign another shortcut to the 'Next Editor' key.

are the two official shortcuts, but they both involve a list being displayed.

CTRL+Page Up / CTRL+Page Down can cycle through editors without displaying a list.

What is interesting with that last set of shortcuts is:
they are not listed in the Eclipse Keys shortcuts to be defined.
They may be inherited from the multipage editor, making them an OS specific shortcut.

VonC
+1  A: 

CTRL-F6 is good to use. If you want to switch to next/previous tab, you need to do CTRL-pagedown/up.

fastcodejava
Yes, I often use this one. However, when the editor proposes multiples views (for example when you work on a `XML` or `properties` file), it switches between the different views, and you are not able to switch between tabs anymore :(
romaintaz
A: 

One way to do it is to use the VI Plugin, and then you just do :n (and :N) to go between files.

That's what I do.

CPerkins
A: 

You can use ALT+Left to go to your previous tab, or ALT+Right to go to forward. This method is using tab-switching like history, though, so it will go to the previous tab you had open, and forward if you've gone "back" once or more. A bit weird, I know, but it works. You can always "reset" the history by clicking through every tab once.

peirix
A: 

If you want to simply switch between your current and your previous tab selections, using CTRL-F6 will switch you back and forth. To navigate to a tab further back in your history, you need to use the UP/DOWN keys while the Editors window is open. This works with Helios (Eclipse 3.6); not sure if this is true for older versions of Eclipse.

Mel Llaguno