"Writers Block" Solution for Java Developers

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

Comments:

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.

Posted by Surya on July 06, 2006 at 10:14 AM PDT #

Post a Comment:
  • HTML Syntax: NOT allowed
About

me
I'm a Director of Product Management for the Oracle Java Development Tools.
Follow me:
Search

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