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?
-
1possible duplicate of [Eclipse: have the same file open in two editors?](http://stackoverflow.com/questions/2058784/eclipse-have-the-same-file-open-in-two-editors) – Puneet Purohit Oct 03 '13 at 07:30
-
Starting with Eclipse Luna 4.4 M4+, you will be able to split your editor twice, for a single file. See [my answer below](http://stackoverflow.com/a/20567138/6309). – VonC Dec 13 '13 at 12:59
8 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.

- 6,609
- 20
- 23

- 6,656
- 32
- 28
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),

- 1,262,500
- 529
- 4,410
- 5,250
-
Unfortunately (in Mars.1 aka 4.5.1 at least) the actual functionality is "Toggle split editor". So doing it more than once simply closes the extra editor tabs that the previous action had opened. It's still possible to clone a tab and drag it around, but the user still gets the ugly extra "tab bar" that way. – Ti Strga Jun 08 '16 at 18:24
-
@TiStrga Do you know if the issue persists in Neon? (4.6, https://eclipse.org/downloads/index-developer.php, currently in RC3) – VonC Jun 08 '16 at 19:27
-
I do not know, sorry. Mars.1 is the only installation I have at the moment. – Ti Strga Jun 09 '16 at 17:06
-
1
-
1@Andrew Good point. I have included your comment in the answer for more visibility. – VonC Apr 10 '17 at 13:18
-
when pressing `CTRL+{` in my Javascript editor, it inserts `''`, to fix this, I need press `CTRL+ALTGR+{` (Linux Ubuntu French keyboard), then vertical split works – el-teedee Feb 20 '19 at 11:36
-
1@el-teedee Thank you. I have included your comment in the answer for more visibility. – VonC Feb 20 '19 at 11:52
Yeah, just right-click on the editor tab you want, and select "New Editor". It'll create a new tab editing the same file. You can then drag this new tab to the left or right edge of the view to get them in a "split screen" state. It's really very flexible.

- 16,629
- 6
- 56
- 82
Other answers explain how to open multiple editors or split editor. If we are talking about other tabs/views that are not editor, it depends on the implementation.
TLDR: search for pin toggle or create new view button/option in view!
History view, Search view and other pinnable tabs - have "Pin this XXX View" toggle:
If you pin it it will keep the content and new Search (or history show) will show in new history view.
History view also has "Reuse Compare Editor" option so compares can be opened in same or separate tabs:
Markers view has option "New Markers View":
This view can be named and you can set custom filter for each view.
Similar is "Terminal View" that has button to open new terminal view:
Some tabs do not have any option to be duplicated. Tested with Eclipse 2019-12 (4.14.0)

- 1,367
- 2
- 19
- 40
I faced similar problem, but not with the main edit tabs: I wanted to have duplicate tabs in additional view panel (exactly: two junit views to compare different test runs).
In my case the only possible way to achive such thing was creating separate window: Window
> New Window
and openning new view there.
p.s. I'm using eclipse kepler 4.3.1.

- 4,376
- 11
- 45
- 60
For eclipse kepler , you can try right-click > open-with > any other like text editor

- 524
- 3
- 21