• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Code Completion using Eclipse

 
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
Ranch Hand
Posts: 374
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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/ ...
 
Sam Kebab
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic