All the code completion functionality provided by eclim (ant, java, etc) makes use of the new 'User Defined Completion' added to Vim 7. To initiate code completion enter insert mode and type Ctrl-X Ctrl-U. I had a problem with Eclipse Juno (OSX Java '1.6.033') where the autocomplete (and save key binding) wasn't working properly. Googling I found this: Eclipse JUNO doesn't start Updating my Mercurial Plugin to the latest (1.9.1) fixed both these issues for me.
- What is autocomplete? Autocomplete is an important feature in search engines. It is used to predict the search query a user is typing based on search history log, search terms popularity and individual interests. Autocomplete is a user interface feature that offers the user a list of words after one or more letters have been typed.
- Expand C/C and Editor. Select Content Assist. Do the following: To insert an element when you open Content Assist and it is the only item in the list, select the Insert single proposals automatically check box. To automatically insert a common prefix of all proposals, select the Insert common prefixes automatically checkbox.
By default eclipse autosuggest would trigger once you type '.' the goal is to make it suggest me the 'Type/Class' names too. How to make it do?
Go to Eclipse(Windows for windows users) --> Preferences --> Java --> Editor --> Content Assist
Under subsection 'Auto Activation' the default value for Auto activation triggers for Java will be '.' change this to
Optionally you can increase/reduce the Auto activation delay to a lesser value.
You are all set! Now Eclipse will start suggesting as you type.
Use Content Assist to insert C/C++ elements of your project, and templates into your code. You can insert a template into your source code rather than retyping commonly-used snippets of code.
Eclipse C++ Autocomplete Plugin
To insert a template or element:
- In the C/C++ editor, type at least the first letter of a template or element then Ctrl+Space.
A list displays the templates followed by the elements that start with the letter combination you typed.
- Do one of the following:
- Continue typing. The list shortens. When there is only one item in the list, it is automatically inserted.
- Double-click an item in the list to insert it into your code.
- Press Esc to close the Content Assist Window.
To set Content Assist preferences:
- Click Window > Preferences.
- Expand C/C++ and Editor.
- Select Content Assist.
- Do the following:
- To insert an element when you open Content Assist and it is the only item in the list, select the Insert single proposals automatically check box.
- To automatically insert a common prefix of all proposals, select the Insert common prefixes automatically checkbox.
- To display proposals in alphabetical order, rather than by relevance, select the Present proposals in alphabetical order checkbox.
- To change Auto-Activation of content assist for '.', '->' or '::' triggers, select the appropriate checkboxes.
- Click OK.
C C++ Eclipse Download
Creating and editing templates
Importing and exporting templates
Eclipse Autocomplete C++
Content Assist page