Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How Do I Switch Between Multiple Eclipse Windows (in "Split Screen" Mode)

Eclipse allows you to open more than one text editing "window" at a time to get a "split screen" effect. This is great, but the problem I'm having is that there doesn't seem to be any way to switch between these windows, directly.

Now, you can use the usual commands (Ctrl+Page Down, CTRL+e, ALT+RIGHT, etc.) to switch between specific buffers. In other words, if I have window 1 with A.java and B.java open, and window 2 with C.java open, I can use Ctrl+Page Down to go from A, to B, to C. However, I can't just go from A or B (ie. from window 1) in to C (ie. to window 2), unless I use CTRL+e and type in "C.java".

There are half a million Eclipse commands though, and they're certainly not all labeled consistently, so it's quite possible I'm just failing to find the relevant command. Does anyone out there in SO-land happen to know it?

like image 852
machineghost Avatar asked Feb 20 '12 19:02

machineghost


People also ask

How do I switch between windows in Eclipse?

A small pop-up window shows all open sources of the Editor View: Pressing CTRL+TAB repeatedly will iterate through the source files.

How do I switch between split screens?

You can move them one by one by windows+alt+arrow keys to the direction you want but it has to be done one by one to the window that has been selected. To bring a windows to right side that is on the left activate it and then press win+right key twice.

Which function key is used to switch between the split screens?

Move the cursor from one panel to the other in split screen: To move the cursor from one panel to the other when the display screen is divided into two panels, use the SWAP PF key.


2 Answers

By default, its Ctrl+F6. However, its useful if you map you keys to Ctrl+Tab to switch between open editors like Windows.

You can change your preferred keys in Window>Preferences>General>Keys and change "Next Editor" to any key of your choice(Ex: Ctrl+Tab). Hope this is what you needed.

like image 157
Panshul Avatar answered Oct 23 '22 02:10

Panshul


This can be achieved easily if you are using Vrapper in Eclipse. Vrapper is a Vim plugin for Eclipse. If you are trying to maximize your productivity in Eclipse like we all are, it's well worth the try.

Once you got it installed, check out the Split Editor Plugin for Vrapper. You can then create splits on the fly and switch between them using the standard Vim shortcut: Ctrl-w w

Bonus: don't forget to maxmize your editors using Ctrl-m.
If your editor ever loses focus for some reason, regain it by pressing Ctrl-F12
Finally open any file in your project using Ctrl-Shift-r

Edit from anula comment: A useful thing to mention here: Ctrl-w by default binds to closing window, so if you want to use it as in Vim you need to first go to Window->Preferences->General->Keys and unbind "Close".

like image 24
neric Avatar answered Oct 23 '22 02:10

neric