 |
Purple Crayon Navigation
Posted by wwake on January 06, 2005 at 07:08 PM | Comments (9)
"Harold and the Purple Crayon" is a children's book where Harold uses his crayon to draw whatever he needs, and then it's real enough to use.
Sometimes you want to navigate to a class. One way is to go find it in the list of classes or out on disk. If you have a one-keystroke "jump to definition", one way is to just type the class name into the file you're in, and navigate on that. Yes, it may leave an extra word where you were, but it can be a quick way to bounce over to a class you want a peek at.
Bookmark blog post: del.icio.us Digg DZone Furl Reddit
Comments
Comments are listed in date ascending order (oldest first) | Post Comment
-
I love "Harold and the Purple Crayon"!
But I'm not following the point of your post and why you'd leave a word behind. In IDEA IntelliJ, I hit command-n, type the a bit of the classname, press return, and I'm there. In Eclipse, I hit command-alt-t (I'm on a Mac - I guess that's ctrl on a PC) and do the same thing.
Posted by: erikhatcher on January 07, 2005 at 01:36 AM
-
I use purple crayon navigation in my current WSAD (eclipse 2.1) project because it takes several minutes to collect the data when if I use the 'Open type...' dialog.
Posted by: terkans on January 07, 2005 at 06:11 AM
-
The new NetBeans (4.0) has that, CTRL-SHIFT-O, sure it's three key-strokes but it works. :)
Posted by: dhinojosa on January 07, 2005 at 08:21 AM
-
Sorry ALT-SHIFT-O,
Posted by: dhinojosa on January 07, 2005 at 08:22 AM
-
JDeveloper has "Go to Declaration" in the context menu with not accellerator; but of course it is quite easy to bind this to any key combination using preferences. When I know a class name and not a package I will often type it in the code editor and let import insight find it for me. I can then navigate at will.
Posted by: gdavison on January 07, 2005 at 10:13 AM
-
And, of course, with JBuilder, with the default CUA keymapping, you type Ctrl-Minus, start typing the class name, press enter, and you are there.
Posted by: javalori on January 07, 2005 at 11:55 AM
-
>But I'm not following the point of your post and why you'd leave a word behind
Some environments have a keystroke for finding the class, but none for opening a query box to do it in. Some environments have the query box but it's so slow I lose a bit of flow while you wait around for it. Some environments have the keystroke (or combination), but I'm new to the environment and and don't remember it. But you're right, it's nice if the environment has it.
Posted by: wwake on January 07, 2005 at 06:10 PM
-
IntelliJ IDEA has this query box when you hit CTRL-N (Go to Class...) You can even use wildcards like *Filter to find all the classes ending with Filter and you may even write "MLCN" to find MyLongClassName (upper case caracters are searched in the class name).
Posted by: krakerjaak on January 08, 2005 at 12:07 PM
-
Those crazy IntelliJ guys - always ten steps ahead of the rest! : )
(Love it!)
Posted by: grlea on January 09, 2005 at 07:34 PM
|