Content Assist is smart suggestions feature by looking at what the developer is currently writing. Almost all current versions of IDE’s suppot content assist feature. There have been many innovations happening in the content assist by various vendors. Here is some of the most interesting facts about Eclipse IDE on content assist:

  • The core functionality is implemented by the class org.eclipse.jface.text.contentassist
  • In the Eclipse preferences menu -> Editor -> Content Assist, you can set options about auto completion insert, activation delay and javadoc triggers etc.
  • The content assist feature is invoked automatically by using the . (dot) operator, pressing Ctrl+Space or typing javadoc @ character
  • If you can’t use Eclipse IDE’s content assist feature then you should try 1) New Project workspace 2) Restart Eclipse with -clean option 3) Some other program has not captured the Ctrl+Space key combination.
  • You can create your custom content assist feature by making use of the extension points exposed by Eclipse. Java Completion Proposal Computer and Xtext and ContentAssistContext are good points to start.
  • Some of the innovative features of Eclipse about content assist are 1) Shortcuts like sysout followed by Ctrl+Space for System.out.println 2) variables/methods/data type suggestions without being case sensitive.
  • For web applications, project Zen Coding was created which provided auto-complete and other high speed coding features. This project is now being used almost all editors including Eclipse for web application code. Note that zen coding plugin is not for Java code.
  • Many web developers feel that there is no support for content assist for JavaScript in eclipse which is not true. Aptana Studio is a very good eclipse plugin which can make JavaScript coding faster. Aptana is available as full fledged standalone IDE and as well as a normal plugin.

Related Posts

Java and Web Content Assist in Eclipse admin Eclipse
Content Assist is smart suggestions feature by looking at what the developer is currently writing. Almost all current versions of IDE's suppot content assist feature. There have been many innovations happening in the content assist by various vendors. Here is some of the most interesting facts about Eclipse IDE...
<p>Content Assist is smart suggestions feature by looking at what the developer is currently writing. Almost all current versions of IDE's suppot content assist feature. There have been many innovations happening in the content assist by various vendors. <strong>Here is some of the most interesting facts about Eclipse IDE on content assist:</strong></p> <p> <ul> <li>The core functionality is implemented by the class <strong><a target="_blank" href="http://help.eclipse.org/juno/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Fguide%2Feditors_contentassist.htm">org.eclipse.jface.text.contentassist</a></strong></li> <li>In the <strong>Eclipse preferences menu -> Editor -> Content Assist</strong>, you can set options about auto completion insert, activation delay and javadoc triggers etc.</li> <li>The content assist feature is invoked automatically by using the . (dot) operator, pressing Ctrl+Space or typing javadoc @ character</li> <li>If you can't use Eclipse IDE's content assist feature then you should try 1) <strong>New Project workspace</strong> 2) <strong>Restart Eclipse with -clean option</strong> 3) <strong>Some other program has not captured the Ctrl+Space key combination.</strong></li> <li>You can create your custom content assist feature by making use of the extension points exposed by Eclipse. <a target="_blank" href="http://help.eclipse.org/indigo/index.jsp?topic=/org.eclipse.jdt.doc.isv/reference/extension-points/org_eclipse_jdt_ui_javaCompletionProposalComputer.html">Java Completion Proposal Computer</a> and <a target="_blank" href="http://zarnekow.blogspot.in/2011/06/customizing-content-assist-with-xtext.html">Xtext and ContentAssistContext</a> are good points to start.</li> <li>Some of the innovative features of Eclipse about content assist are 1) Shortcuts like sysout followed by Ctrl+Space for System.out.println 2) variables/methods/data type suggestions without being case sensitive.</li> <li><strong>For web applications</strong>, project <a target="_blank" href="http://code.google.com/p/zen-coding/">Zen Coding</a> was created which provided auto-complete and other high speed coding features. This project is now being used almost all editors including Eclipse for web application code. Note that zen coding plugin is not for Java code.</li> <li>Many web developers feel that there is no support for content assist for JavaScript in eclipse which is not true. <a target="_blank" href="http://www.aptana.com/"><strong>Aptana Studio</strong></a> is a very good eclipse plugin which can make JavaScript coding faster. Aptana is available as full fledged standalone IDE and as well as a normal plugin.</li> </ul> </p>
Generate JDK style javadoc documentation for Java application
Attach JDK source in Java application in Eclipse
The following two tabs change content below.
I run this blog with lots of passion. In this website, you will find tutorials on Core Java, Spring, Struts, Web Applications, Portals and Database. Please support me and the website by sharing the posts on your facebook / twitter. You can tap the share button at the top of each post. Thanks for the support.

Latest posts by admin (see all)

Comments

comments