Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to enable duplicate tabs in Eclipse? (i.e. duplicate windows)

Tags:

eclipse

window

If there's one thing I miss about emacs it's having 4 windows of the same file open, each at a different location in that file, for super quick referencing. Is there a way to get Eclipse to present multiple tabs of the same file?

like image 253
emish Avatar asked Jan 29 '11 01:01

emish


2 Answers

On the Window menu choose Editor, then Clone (since 4.4.x) or New Editor (earlier versions). You can then drag the title bar around to get side-by-side views.

like image 152
Uriah Carpenter Avatar answered Sep 27 '22 23:09

Uriah Carpenter


Another way would be to split the code editor view twice

But this will only be possible with Eclipse Luna 4.4 M4, as detailed by Lars Vogel in "Split editor implemented in Eclipse M4 Luna", in 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.
Current shortcut for splitting is:

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

Depending on your keyboard layout:

  • Andrew adds in the comments that you can need Ctrl + Shift .
  • el-teedee mentions (also in the comments) that, when pressing CTRL+{ in my Javascript editor, it inserts ''.
    To fix this, I need to press CTRL+ALTGR+{ (Linux Ubuntu French keyboard),

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

like image 31
VonC Avatar answered Sep 27 '22 23:09

VonC