Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

How to split window in Eclipse

📅 2010-Jan-04 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ eclipse, split, window ⬩ 📚 Archive

I like working with split editor windows when comparing code from 2 different sections of a file or different files. This is easy to do in Visual Studio (see here). It is just as easy in Eclipse too, though not obvious if you merely look through the menus.


[ To split a window, just grab hold of a tab and pull it to the side until it turns into a black arrow. ]


[ Leave it and it turns into a new window with a new tab group. ]

To have split windows with the same file: Choose WindowNew Editor. That creates a new tab of the open file. Pull that tab as above to split the window.

For a horizontal split, pull the tab to the bottom of the window.

Keyboard shortcut for horizontal split: Ctrl+Shift+_ Keyboard shortcut for vertical split: Ctrl+Shift+{

Tried with: Eclipse Luna 4.4.1 and Ubuntu 14.04

© 2022 Ashwin Nanjappa • All writing under CC BY-SA license • 🐘📧