Tuesday November 28, 2006
NetBeans Keyboard Shortcut of the Week (6)
I discovered something purely by chance yesterday (hurray for serendipity). Let's say you have this import statement:
import java.io.BufferedReader;
If you put the cursor in "BufferedReader" above and then press Alt-O, the IDE opens the "BufferedReader" source. No surprise there, right? The key binding Alt-O is "Go to Source" and so, when you put the cursor on the name of a class, and then press Alt-O, you see the source.
However, what happens when you put the cursor on "java" or on "io" in the import statement above? Now you're not in the name of a class, but in the name of a package. Put the cursor in "java" for example and then press Alt-O again. And look... wow... a whole new explorer window appears, with the name of the package in the title bar and all the subpackages within the package displayed, which you can browse and you can open the classes and look at them inside the editor:
Pretty cool. I never knew this was possible. Makes NetBeans even more of a learning tool than I had thought it was. This is definitely worthy of being the 'keyboard shortcut of the week', with pride of place in the left sidebar of this blog.
Nov 28 2006, 01:38:08 AM PST Permalink
Posted by 80.38.101.173 on November 28, 2006 at 03:24 AM PST #
Posted by Geertjan on November 28, 2006 at 03:30 AM PST #
Posted by Geertjan on November 28, 2006 at 03:32 AM PST #
Posted by Jorge M. on November 28, 2006 at 03:51 AM PST #
Posted by Geertjan on November 28, 2006 at 03:56 AM PST #
Posted by Kurt Risser on November 28, 2006 at 07:36 AM PST #
Posted by Geertjan on November 28, 2006 at 08:05 AM PST #
Posted by Rory on November 28, 2006 at 08:56 AM PST #
go
Posted by 125.24.192.117 on April 17, 2008 at 12:32 AM PDT #


