如何在 Eclipse 中打开第二个编辑器视图?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/5974828/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How do you open a second editor view in Eclipse?
提问by Josh Glover
I have a nice high-resolution widescreen monitor, and I'll like to be able to edit files side-by-side in Eclipse (so I can reference one file whilst working in another, for example). I've looked around in the usual menus, but have not figured out how to do this.
我有一个不错的高分辨率宽屏显示器,我希望能够在 Eclipse 中并排编辑文件(例如,这样我可以在处理另一个文件的同时引用一个文件)。我在通常的菜单中环顾四周,但还没有想出如何做到这一点。
Does anyone know if it is possible, and if so, how to do it?
有谁知道这是否可能,如果可能,该怎么做?
回答by Alan Escreet
Click on the tab of one of the files you want to edit and drag the tab to the edge of the editor frame until you see a vertical line appear in the middle of the editor frame. Then drop the tab there and you have two files to view side-by-side.
单击要编辑的文件之一的选项卡,然后将该选项卡拖动到编辑器框架的边缘,直到您看到在编辑器框架的中间出现一条垂直线。然后将选项卡放在那里,您可以并排查看两个文件。
回答by lschin
MENU : Window -> New Editor (Side by side) / Ctrl + 8
菜单:窗口 -> 新编辑器(并排)/ Ctrl + 8
回答by Abhishek Bedi
I am using Eclipse Helios.
我正在使用 Eclipse Helios。
RIGHT CLICK ON THE TAB --> MOVE --> EDITOR
右键单击选项卡 --> 移动 --> 编辑器
And then just drag it to the Project Explorer side and release the click.
然后只需将其拖到 Project Explorer 一侧并释放单击。
Automatically you can see the parallel views :)
您可以自动看到平行视图:)