简体   繁体   English

IntelliJ IDEA可以为同一个项目的文件打开多个编辑器窗口吗?

[英]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.) 一个答案建议取消固定标签,但我无法做到这一点(如果重要的话,我在Mac OSX上。)

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. 在转移到IDE之前,我曾经常常使用优秀的旧Emacs。 Is there some trick I am not aware of to make this happen? 是否有一些技巧我不知道要做到这一点?

现在可以在IDEA X中使用。希望您仍然是IDEA用户并且可以利用这个:)

Unfortunately there is no way (as of IDEA 8.0.1) to do what you're asking for. 不幸的是,没有办法(从IDEA 8.0.1开始)做你想要的。 As you pointed out, you can split the editor pane but there is always exactly one editor per IDEA project. 正如您所指出的,您可以拆分编辑器窗格,但每个IDEA项目始终只有一个编辑器。

UPDATE: As of IDEA 10 (currently the latest is 10.5), the answer is yes, you can :-) 更新:截至IDEA 10(目前最新的是10.5),答案是肯定的,你可以:-)

I work around the limitation by opening one source file in vi, on a second head monitor. 我通过在第二个头监视器上打开vi中的一个源文件来解决限制。 Then work main file within Idea (actually Pycharm). 然后在Idea(实际上是Pycharm)中工作主文件。

Update: even with the feature built into pycharm, I still use vi. 更新:即使使用pycharm内置的功能,我仍然使用vi。 Works better. 效果更好。

根据@ 9000的评论,可以通过拖动IDEA外部的选项卡将编辑器选项卡转换为新窗口。

是的 - 使用IDEA X ,最终可以打开多个编辑器窗口。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM