Shay Shmeltzer's Oracle Development Tools Tips

  • July 6, 2006

"Writers Block" Solution for Java Developers

Shay Shmeltzer
Director of Product Management - Oracle

We are currently discussing the list of features we want to get into the JDeveloper code editor in the 11 release. While working on the list of things to implement I came across various hidden gems in the JDeveloper code editor.

For example:

Are you familiar with the ctrl+alt+space shortcut?

This is in the source menu under the title "Smart Completion Insight". What does it do?

It is kind of a "writer block" releaser for Java developers. So when you are writing code and suddenly your mind goes blank and you forget what you need to write next this short cut can help.

Here are a couple of examples.

copy these 3 lines into a class:

String a;

String b;

String c =

Now place your cursor after the = sign and press ctrl+alt+space. JDeveloper will pop up a window to let you choose from the list of String object you have in your class.

One more sample:

copy this:

List a = new

Import the missing List (alt+Enter), and then with the cursor after new press ctrl+alt+space and JDeveloper will complete the line for you.

There are more gems like this in there, I'll try and post some of those soon.

By the way, if you have a code editor feature that you would like to see us implementing, let us know on this OTN thread

Join the discussion

Comments ( 1 )
  • Surya Thursday, July 6, 2006
    I think the Source menu should be present as a context menu that is accessible when one right clicks in the editor. They can then navigate to Source which opens up into another menu. Something like that Eclipse has. It is a considerably smaller distance to travel with the mouse and is more accessible that way IMHO.
Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.