Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can IntelliJ IDEA open more than one editor window for files from the same project?

I can split editor panes horizontally or vertically, but it does not seem possible to view code in two separate physical windows. I am aware that Idea can open multiple projects in separate windows, but I'd like to be able to do this for two files in a single project.

One answer suggested unpinning the tab, but I haven't been able to make that work (I'm on Mac OSX if that matters.)

This seems like a basic feature in today's world of multi-headed workstations. Before moving to an IDE I used to do this regularly with good old Emacs. Is there some trick I am not aware of to make this happen?

like image 995
Limbic System Avatar asked Dec 17 '08 15:12

Limbic System


People also ask

How do I open two IntelliJ windows from the same project?

You can split the editor view vertically/horizontally, this will display the same file in both splits, then you can drag one of the tabs outside of the IDE to create a float editor window. Another way to open multiple editors for the same file is to select the file in the Project view and press Shift+Enter.

How do I open multiple tabs in IntelliJ?

Split a single file into multiple tabsRight-click a tab and choose Split Right or Split Down. Choose Window | Editor Tabs | Split Right/Split Down from the main menu.


3 Answers

This is now possible in IDEA X. Hopefully you're still an IDEA user and can take advantage of this :)

like image 130
Allen George Avatar answered Sep 20 '22 19:09

Allen George


Unfortunately there is no way (as of IDEA 8.0.1) to do what you're asking for. As you pointed out, you can split the editor pane but there is always exactly one editor per IDEA project.

UPDATE: As of IDEA 10 (currently the latest is 10.5), the answer is yes, you can :-)

like image 23
Pavel Avatar answered Sep 22 '22 19:09

Pavel


I work around the limitation by opening one source file in vi, on a second head monitor. Then work main file within Idea (actually Pycharm).

Update: even with the feature built into pycharm, I still use vi. Works better.

like image 35
Bryce Avatar answered Sep 19 '22 19:09

Bryce