在Netbeans中拆分窗口 [英] Split windows in Netbeans

查看:107
本文介绍了在Netbeans中拆分窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试拆分窗口,以便可以在1个屏幕上拥有2个不同的类或其他类,但它只会拆分相同类/文件/任何内容的窗口.我已经使用netbeans多年了,但仍然做不到.

I'm trying to split my windows so I can have 2 different classes or whatever on 1 screen but it will only split the window of the same class/file/whatever. I've been using netbeans for years and still can't do this.

这可能吗?

推荐答案

您没有特别提到要使用的NetBeans版本.我使用的是版本8,这些说明适用于该版本和版本7.我相信它与版本6相同.

You don't specifically mention which version of NetBeans you are using. I'm using version 8, and these instructions work for that version and version 7. I believe it is the same for version 6.

如果要同时在屏幕上看到两个不同的源文件(不浮动),请打开两个源文件.在IDE的编辑区域中,您将有两个选项卡.在不释放鼠标键的情况下单击其中一个源文件的选项卡(而没有按住任何其他键),然后向编辑区域的右侧拖动,或朝向编辑区域的底部(取决于您是将它们并排放置还是堆叠放置).开始拖动后,您将看到橙色轮廓.如果橙色框包围了整个编辑区域,则IDE认为您想对标签进行重新排序.继续向边缘拖动(不越过),最终您将看到橙色框发生变化,以填充编辑区域的右半部分或下半部分(或者,如果以其他方式拖动,则左半部分或上半部分) .此时松开鼠标按钮,会将源文件拖放到编辑区域的一半,使两个源文件并排或堆叠在一起.

If you want to see two different source files on the screen at the same time (without floating), then open both source files. You will have two tabs in the editing area of the IDE. Click on the tab of one of the source files without releasing the mouse button (and without holding any additional keys), and drag toward either the right side of the editing area, or toward the bottom of the editing area (depending on whether you want them side-by-side or stacked). You will see an orange outline appear once you start dragging. If the orange box encloses the entire editing area, then the IDE thinks you want to reorder the tab. Keep dragging toward the edge (without going over) and eventually you will see the orange box change to fill either the right half or the lower half (or if you drag the other way, the left half or the top half) of the editing area. Releasing the mouse button at this point will drop the source file in that half of the editing area, leaving you with the two source files side-by-side or stacked.

以下是在释放鼠标按钮之前堆叠两个源文件时的样子的示例:

Here's an example of what it looks like when stacking two source files, just before the mouse button is released:

这是释放鼠标按钮后的样子:

And here is what it looks like after releasing the mouse button:

如果要在屏幕上复制相同的源文件,请打开单个源文件并按照上面的说明进行操作,仅在单击并拖动时按住 CTRL 键.

If you want to have the same source file duplicated on the screen, open the single source file and follow the instructions above, only hold the CTRL key while clicking-and-dragging.

您可以根据需要多次重复此过程(这取决于您的屏幕大小),这样您最终可以将源文件分成几列,几行或其任意组合.

You can repeat this procedure as many times as you want (as is practical for your screen size), so that you end up with source files in several columns, several rows, or any combination thereof.

下次打开文件时,它将在当前选定的源文件的选项卡组中打开.如果最终在错误的"选项卡组中打开了源文件,请按照上述步骤将其拖到所需的位置(如果要将其作为一个小图标放入,则允许橙色框勾勒出整个选项卡组区域的轮廓).标签).

When you next open a file, it will be opened in the tab group of the currently selected source file. If you end up with a source file opened in the "wrong" tab group, just drag it to where you want it using the procedure above (allowing the orange box to outline the whole tab group area if you want to drop it in as a tab).

其他屏幕截图供参考...

Additional screen shots for reference...

在同一标签组中对标签进行重新排序:

Reordering a tab within the same tab group:

并排而不是堆叠(两个图像):

Side-By-Side instead of stacked (two images):

随心所欲地疯狂...

Get as crazy as you want...

通过将第二个文件拖到下半部分,将第三个文件拖到上半部分的右半边,然后将第四个文件拖到下半部分的右半边,创建上面的文件.

Create the above by dragging the second file to the lower half, the third file to the right half of the top half, and the fourth file to the right half of the lower half.

这篇关于在Netbeans中拆分窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆