Splitting Windows in NetBeans

I've found from talking to many people that it isn't common knowledge that you can split a window in NetBeans. That is, displaying multiple editor windows at a time by dividing up the display. You can split windows horizontally and vertically, just like any good editor or IDE. This is very easy to do in NetBeans.

To split a window horizontally, you simply click and hold the mouse button on a tab at the top of the editor and drag it to the bottom (or top) area of the editor. As you do this, you'll see an outline of where the window will be placed. Let go of the mouse button and the window will split and display at the bottom. You can then click and drag the area between the bottom window's tab area and the top window's status bar area to resize the window.

To split the window vertically, do the same thing as above, except drag to the right (or left) side of the editor window and let go. Again, you'll see an outline letting you know where the window will be placed.

You can continue to do this and keep splitting windows as you like. Of course, with the amount of space the window takes up (tab area, toolbar area, status bar area, etc.), your real estate diminishes quickly. BTW, you can get rid of the toolbar to free up more space (right-mouse click on the area to the left of the edit window and de-select 'Show toolbar').

You can add multiple files to the split window as well. Just make your first split, then drag and drop a second tab into the middle of the target split area. The file will be added.

To get rid of a split, drag a tab from the split area back to the middle of the main area. The file will be moved to the main area. If the file is the last one in the split area, the split will disappear.

You can also view different sections of a file at the same time. Simply right-mouse click on the tab of the file and choose 'Clone Document'. You'll see another tab show up with the same name. Then use the cloned window to split the window. You now have the same document displayed side by side. You can scroll both windows independently.
Comments:

Dude, read before posting:

"...area, etc.), you're real estate diminishes quickly. BTW, you can get rid..."

you're != your.

I cant understand why people do this mistake so often, it is LONGER than the correct way...

As a side note, that must be the most stupid contraction in the whole of English language, all you save is a white space.

Posted by rciafardone on October 06, 2010 at 12:52 AM PDT #

rciafardone:
The reason people make this mistake is because the contracted copula is much more common than the genitive form of "you".
This is also partially the reason for people mixing up "it's" and "its", although that case is also related to the use of apostrophe before genitive S's (but the S in "its" is not an ordinary genitive S, it's an own genitive pronoun/determiner).
The reason the contraction exists is to reflect the colloquial contraction. Unless you're actually emphasizing the "are" you usually don't pronounce the A.

dmocek:
Thanks for the instructions. I knew it had to be in there somewhere. :)

Posted by Sardtok on October 09, 2010 at 09:25 AM PDT #

Thanks for pointing out "Clone Document"! That's exactly what I was looking for!

Posted by JBC on November 18, 2010 at 03:08 AM PST #

This is exactly what I was looking for - much thanks! I should probably spend some more time going through the netbeans documentation.

@Sardtok: Your comment alone made coming here worth it!

Posted by Aaron Chmelik on April 14, 2011 at 05:23 AM PDT #

Thank you for this useful trick (splitting a window side by side)! That's exactly what I was looking for.

Posted by guest on May 16, 2011 at 03:47 AM PDT #

awww thanks, so simple but i failed to discover it on my own :-)

Posted by sissi on March 10, 2012 at 02:50 AM PST #

Exactly what I was looking for, thanks mate!

Posted by Bruno on August 20, 2012 at 01:18 PM PDT #

+1 thanks

Posted by guest on January 16, 2013 at 11:54 AM PST #

Post a Comment:
  • HTML Syntax: NOT allowed
About

Darryl Mocek

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today