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?
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?
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.
Right click on your editor tab and select "New Editor".
... unless you have a newer version of eclipse, in which case do Window -> New Editor.
In order to keep answers up to date i underline that with Eclipse STS this action is performed using window -> Editor -> Toggle split editor (horizental) | Toggle split editor (vertical)