aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes Code Completion using Eclipse Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Code Completion using Eclipse" Watch "Code Completion using Eclipse" New topic
Author

Code Completion using Eclipse

Sam Kebab
Ranch Hand

Joined: Jan 23, 2002
Posts: 104
I do know that in the eclipse ide you press ctrl-spacebar. Then there is a pop-up then you simply select.
My question is: using Eclipse is there a way to skip the pop-up and the ide chooses the first word.
For example, in Netbeans it would be like this:
e.g.
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
String xpalidocious = null; //1) i declare this here
//let us say i am editing right here ... //3) i edit here
xp (ctrl-k) //a) netbeans will immediately choose xpalidocious
xp (ctrl-l) //b) netbeans will immediately choose xphangs
xp (ctrl-spacebar) //c) both eclipse and netbeans produces a pop-up
String xphangs = null; //2) i also declare this here
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Can i do option a and option b in eclipse?
[ August 19, 2003: Message edited by: Sam Kebab ]
David Hibbs
Ranch Hand

Joined: Dec 19, 2002
Posts: 374
If there is only one option, eclipse should grab it. Otherwise, you likely get an option box. There's a cool set of additional code completeion plugins though at http://zclipse.org/ ...


"Write beautiful code; then profile that beautiful code and make little bits of it uglier but faster." --The JavaPerformanceTuning.com team, Newsletter 039.
Sam Kebab
Ranch Hand

Joined: Jan 23, 2002
Posts: 104
Thanks for the response.
Yes eclipse grabs the word if there is only one.
The reason i want this feature is because:
1) i'm a typo-error prone person (ang completion results in no typo)
2) but in this scenario i don't want the popup because:
a) it requires an extra motion and the pop-up tends to be slower
b) i only want the popup when i'm not sure what i want and need choices, but in this case i already know what variable i want. (so ctrl-k or ctrl-l)
3) sometimes i need the variable name 12 times in succession to call twelve methods. Pain of typing.
Jon Poole
Ranch Hand

Joined: Jun 19, 2003
Posts: 31
David,
Thanks for the tip on where to find Tab Navigator! I love the Code Completion feature of Eclipse, but have wanted it to do a little more. I think Tab Navigator is just the ticket.
Cooooool....
Jon
 
 
subject: Code Completion using Eclipse