Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » How to make auto-complete open automatically?(And a suggestion to make auto-complete better)
How to make auto-complete open automatically? [message #674758] Sat, 28 May 2011 10:02 Go to next message
Mark  is currently offline Mark Friend
Messages: 3
Registered: March 2011
Junior Member
Hello, I was wondering if there is a way to automatically open auto-complete (ctrl+space) when I start typing a word, and I would like TAB to select the current suggestion in auto-complete. I searched for ages and couldn't find this in options. I use Eclipse Helios with CDT plug-in, but this will be useful for all languages. This is something that greatly speeds up typing code. They have this in Visual Studio + Visual Assist X plugin.

And another awesome suggestion for auto-completion is for it to understand acronyms.
For example: I type in tspo{TAB}.dsis{TAB} and Visual Assist would replace it with theSecondParameterObject.doSomeInterestingStuff()
It even works if you make some typos in the name/acronym (search google: visual assist acronyms)
Is there any chance there is a plug-in to eclipse that does these things?
Thanks for the help! Smile
(no subject) [message #675507 is a reply to message #674758] Tue, 31 May 2011 17:30 Go to previous message
Eric Rizzo is currently offline Eric RizzoFriend
Messages: 3070
Registered: July 2009
Senior Member
On 5/28/11 6:02 AM, Mark wrote:
> Hello, I was wondering if there is a way to automatically open
> auto-complete (ctrl+space) when I start typing a word, and I would like
> TAB to select the current suggestion in auto-complete. I searched for
> ages and couldn't find this in options. I use Eclipse Helios with CDT
> plug-in, but this will be useful for all languages. This is something
> that greatly speeds up typing code. They have this in Visual Studio +
> Visual Assist X plugin.
>
> And another awesome suggestion for auto-completion is for it to
> understand acronyms.
> For example: I type in tspo{TAB}.dsis{TAB} and Visual Assist would
> replace it with theSecondParameterObject.doSomeInterestingStuff()
> It even works if you make some typos in the name/acronym (search google:
> visual assist acronyms)
> Is there any chance there is a plug-in to eclipse that does these things?
> Thanks for the help! :)

I don't use CDT, but for Java you can set up auto-activation triggered
by whatever characters you want (the default is .). In Preferences, go
to Java > Editor > Content Assist. CDT probably has a similar option.

As for acronyms, the closest thing is editor templates. I use code
templates, defined in Preferences > Java > Editor > Templates. For
example, I can type "lazy: followed by Ctrl+Space and it inserts the
template for a lazy-initializing getter. It's not quite as context-aware
as what you're describing, but somewhat similar. I don't know of any
plugin that does exactly what you describe, but hey, that's an
opportunity for you to learn plugin development and contribute such a
thing! :-)

Eric
Previous Topic:Android Development using Eclipse
Next Topic:Where are SWT and JFace Jars?
Goto Forum:
  


Current Time: Thu Apr 25 14:02:03 GMT 2024

Powered by FUDForum. Page generated in 0.07637 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top