Reputation: 10789
Very often I encounter situation where I need to see or manually compare two eclipse sources. It can be a situation when I extending some class and looking at current implementation of superclass and writing similar implementation in subclass. Here are solutions come in mind with time:
ALT+LEFT
and ALT+RIGHT
to switch between them, but the problem left - we have only one active screen at time.Is there a more clever way to get functionality that I need?
Upvotes: 0
Views: 291
Reputation: 347
you can click on source file tab and right click-> then select new editor. you will get duplicate tab there. after that click on that and drag to any direction and you will get two different frames for file
Upvotes: 1
Reputation: 25149
I think that @Nos explains the more accurate solution, but if you need to have two active editors at the same time... You only need to open the both files, and then "detach" one of the tabs, or move it to another editor.
To move a tab to other editor window, you only need to click on the tab title and drag it to another position. It will automatically created another editor window.
Upvotes: 1
Reputation: 1204
I am not sure what version of Eclipse you are using but in general you just select the two files (using the ctrl-key + mouse) you wish to compare, then right click on one of the selected files, go to "Compare with" sub-menu and select 'Each Other'?
Upvotes: 0