| <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> | |
| <html lang="en"> | |
| <head> | |
| <meta name="copyright" content="Copyright (c) IBM Corporation and others 2000, 2008. This page is made available under license. For full details see the LEGAL in the documentation book that contains this page." > | |
| <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> | |
| <meta http-equiv="Content-Style-Type" content="text/css"> | |
| <title> | |
| Content/Code Assist | |
| </title> | |
| <link rel="stylesheet" href="../book.css" charset="ISO-8859-1" type="text/css"> | |
| </head> | |
| <body> | |
| <h1> | |
| Content/Code Assist | |
| </h1> | |
| <p> | |
| In the Java editor press <b>Ctrl + Space</b> on code to complete. This opens a list of available code completions. Some tips for using code assist are listed in the following paragraph: | |
| </p> | |
| <ul> | |
| <li> | |
| You can use the mouse or the keyboard (Up Arrow, Down Arrow, Page Up, Page Down, Home, End, Enter) to navigate and select lines in the list. | |
| </li> | |
| <li> | |
| If you select a line in the content assist list, you can view Javadoc information for that line. | |
| </li> | |
| <li> | |
| Clicking or pressing Enter on a selected line in the list inserts the selection into the editor. | |
| </li> | |
| <li> | |
| You can access specialized content assist features inside Javadoc comments. | |
| </li> | |
| </ul> | |
| <img src="images/contentassist.png" alt="An editor showing a content assist and Javadoc window at the caret position"> <p> | |
| Configure the behavior of the content assist in the <a href="preferences/java/ref-preferences-editor.htm">Java > Editor > Code Assist</a> preference page.<br> | |
| </p> | |
| <img src="../images/ngrelc.png" alt="Related concepts" border="0" > | |
| <p> | |
| <a href="../concepts/concept-java-editor.htm">Java editor</a><br> | |
| <a href="../concepts/concept-jdt.htm">Java development tools (JDT)</a> | |
| </p> | |
| <p> | |
| <img src="../images/ngrelr.png" alt="Related reference"> | |
| </p> | |
| <p> | |
| <a href="../reference/ref-menu-edit.htm">Edit menu</a><br> | |
| <a href="../reference/preferences/java/ref-preferences-editor.htm">Java editor preferences</a><br> | |
| <a href="../reference/preferences/java/editor/ref-preferences-templates.htm">Templates preferences</a><br> | |
| </p> | |
| </body> | |
| </html> |