Eclipse: have the same file open in two editors?

eclipse

Solution

Open your file and then `Window`->`New Editor` (Note: in newer versions it will be called `New Window`)

Then, click on its tab and drag it somewhere else to have two editors of the same file

Update: as mentioned by moschlar, From version 4.4, two editors can be created with `Window` -> `Editor` -> `Clone`.

Problem

When I'm editing a large file, I often want to have it open in two editing windows at once (eg. for reference, or because I'm working on two different parts of the file at once). Is there any way to do this with Eclipse?

Original source