score:286
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
.
score:0
This seems to now be in the File-> New View Into File which opens the tab with focus into a new tab in the same group where you can then drag it to another group if you wish.
score:2
In Eclipse Mars there is another way of doing it:
Window -> Editor -> Clone
.
then drag the cloned tab to the corner to create a parallel window.
score:3
Window -> Editor -> Clone is also available in Neon 2 and, judging from the other comments seems to be available in all newer Eclipses.
It's my preferred solution.
score:3
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)
score:10
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.
score:20
I realize he specified a new editing window. Showing an alternative for those, like me, that do not want a new editor but would like to be able to look at the file in two places at the same time in the same tab.
Window -> Editor -> Toggle Split Editor
will split the editor horizontally or vertically.
Ctrl + _
is horizontal and Ctrl + {
is vertical. More precisely it's Ctrl + Shift + -
and Ctrl + Shift + [
.
I had issues with it in Mars (see note below) that seem to have cleared up in Neon.
Mars Note: The split editor seems a bit buggy. The JavaScript editor likes to jump the cursor to the other pane momentarily when it does a while-you-type-validation.
score:80
In Eclipse Luna (4.4) and above, this is supported out of the box: Window -> Editor -> Clone
.
Source: stackoverflow.com
Related Query
- Eclipse: have the same file open in two editors?
- How to diff two regions of the same file in Eclipse
- Eclipse shows the same file in two different tabs
- Is there a way to make Eclipse open a hyperlinked java file from another project from the same workspace
- Open two editors with the same label
- Can you have 2 completely independent instances of Eclipse running at the same time?
- How to navigate to the last cursor position in Eclipse if it is in the same file and was not edited?
- Eclipse file search finds the same file multiple times
- How do you open an external Vim editor containing the active Eclipse editor file
- Eclipse - How to import a local source file into the same folder?
- Have two JDK installed, how to switch the java compiler in Eclipse
- Eclipse Maven showing multiple paths for the same file
- Eclipse open a file contained in the project
- How can I debug two projects in eclipse at the same time?
- Eclipse Plugin Development, associating different editors to same file extension
- How can two eclipse plugin use the same preferences store?
- How to have Eclipse console show the same GoogleTests output as in the terminal?
- Two Android apps in the same Eclipse project?
- Can i increase the number of visible open file tabs in Eclipse
- Maven Checkstyle and Eclipse Checkstyle report similar but different results using the same config file
- Eclipse --launcher.openFile does not open the file
- How to run the same eclipse installation from two (dual-boot) OSes?
- How do I get the file path of the open workspace for developing plugins in eclipse
- Running two projects (trunk & branch) at the same time in Eclipse
- Eclipse save error when trying to open the design view of a synapse config file in WS02 Developer Studio
- Is it possible to have multiple people work on the same Eclipse project at once? (Like Google Docs)
- Is it possible to add a .java file to my eclipse folder and have it appear in the output directory without being compiled?
- Eclipse how to reference file in a different src under the same project
- Eclipse repeat the same message again and again on a twig file
- Open a file in an Eclipse editor and set the focus on this editor
More Query from same tag
- parse error trying to install apps on my phone
- Run GUI in eclipse android
- Massive Maven Project
- Eclipse claims I have a missing </application> tag; can't figure out what's wrong
- import encog examples into eclipse
- Breakpoint Is Not Getting Hooked in Eclipse with GWT Application
- Does anyone have a CUSP plugin for Eclipse (Common Lisp)
- Source not found debugging android eclipse
- eclipse maven deploy war to nexus OSS Access denied Error code 401, Unauthorized
- Add new activity in eclipse android
- Java documentations in a separate file on Eclipse
- Type mismatch: cannot convert from java.lang.String to String
- Will my .project file cause problems in other peoples workspaces?
- Wildfly 10 Not using database but getting a jpa error
- Pydev for Eclipse does not change all reference when renaming package
- Android everytime I add an ID to a view I have to make a clean install
- How to I make an activity close when minimised
- Why am I getting this error while using sikuli on for the first time?
- Eclipse Autocomplete not suggesting the method in Spark/Scala
- How can I hook into Eclipse editor events in my own plugin?
- Android Head First "NASA daily image App"
- Maven M2Eclipse plugin not working
- Why cleaning in Eclipse can cause error messages?
- Add Library JAR Files to EJB project
- Java - .jar file runs out of heap but executing in eclipse doesn't
- Can't create a Servlet in eclipse due Path for project must have only one segment
- Performing Find+Replace on a specific region and for letters that can be part of any word
- Beyond CVS Eclipse Plug-In Problem
- Is there any tool or plugin availabe in eclipse to recompile a Java GUI application
- How to use different versions of google-play-services libs for a project