score:348

Accepted answer

this is possible with the menu items window>editor>toggle split editor.

current shortcut for splitting is:

azerty keyboard:

  • ctrl + _ for split horizontally, and
  • ctrl + { for split vertically.

qwerty us keyboard:

  • ctrl + shift + - (accessing _) for split horizontally, and
  • ctrl + shift + [ (accessing {) for split vertically.

macos - qwerty us keyboard:

  • + shift + - (accessing _) for split horizontally, and
  • + shift + [ (accessing {) for split vertically.

on any other keyboard if a required key is unavailable (like { on a german qwertz keyboard), the following generic approach may work:

  • alt + ascii code + ctrl then release alt

example: ascii for '{' = 123, so press 'alt', '1', '2', '3', 'ctrl' and release 'alt', effectively typing '{' while 'ctrl' is pressed, to split vertically.

example of vertical split:

https://bugs.eclipse.org/bugs/attachment.cgi?id=238285

ps:

  • the menu items window>editor>toggle split editor were added with eclipse luna 4.4 m4, as mentioned by lars vogel in "split editor implemented in eclipse m4 luna"
  • the split editor is one of the oldest and most upvoted eclipse bug! bug 8009
  • the split editor functionality has been developed in bug 378298, and will be available as of eclipse luna m4. the note & newsworthy of eclipse luna m4 will contain the announcement.

score:1

if you want to see two different files in same eclipse you can,

right-click a tab -> detach

now you can see both files at the same time without opening new eclipse and you can drag and reatach to tabs again.

score:1

on mac os, the key combination to toggle spit/unsplit for horizontal split is ⌘ ⇧ - ("cmd"+"shift"+"-"), whereas for vertical split, it is ⌘ ⇧ [ ("cmd"+"shift"+"[")

score:4

below are the steps to split editor horizontally or vertically go to:

window -> editor -> toggle split editor (horizontal) 

to split editor horizontally or

window -> editor -> toggle split editor (vertical) 

to split editor vertically.

it will open two editors side by side or will pileup tow.

score:5

simply go to window > new window

this will open up a new window of the same workspace in eclipse.

you can open up separate files in each window.

score:6

you might want to check an eclipse plugin called handysplit

it allows to split an editor into two and move tabs from one editors stack to another with keyboard shortcuts only.

that works on eclipse juno or higher. for the previous eclipse versions check this out

score:20

side by side editors in single eclipse window.

  1. you have an eclipse window showing a single editor.
  2. window -> new editor. you now have two editor tabs.
  3. click and drag one tab towards the right and a green outline of a vertical screen appears (drag tag towards the bottom and an outline of a horizontal screen outline appears). you can let go as soon as the outline appears.
  4. open file of choice in 2nd editor (recent files show up at bottom of file menu).

adt/eclipse:build: v22.3.0-887826

score:23

i tried the above solutions in eclipse luna 4.4.1 but couldn't open two (or multiple editor windows for different files side by side).

simplest solution:

  1. open all files you want in a single window.
  2. drag the tab of each of the files to right or to the left, eclipse will automatically display a split screen display and will split the editor into two windows once you leave the mouse button.
  3. repeat for each file/tab.

happy coding!

score:34

just click and drag editor title to left, right, top or bottom

score:37

if you right click on one of the tabs, one of the options should be new editor (for me, it's at the bottom). select that, and then drag the new tab onto the bottom scroll bar of the code editor, which will split the editor panel in two.

score:98

you can open a new editor from the window menu.

this will give you your current editor once again.


Related Query

More Query from same tag