You can use Content Assist to help insert or finish a tag or function or finish a line of code in the editor as well as to select and insert templates.
The placement of the cursor in the source file provides the context for the content assist to offer suggestions for completion.
You can request content assist in either of the following two ways:
From the Edit menu, select Content Assist
Press Ctrl+Space
In addition, you can set a preference that causes content assist to pop up automatically when certain characters are typed, such as . in the case of JavaScript? or < in the case of HTML and XML. To set this preference, select Preferences from the Window menu, and then select Web and XML Files, followed by one of the following sequences:
HTML Files > HTML Source
JavaScript Files > JavaScript Source
XML Files > XML Source
In the Content Assist group box, select the Automatically make suggestions check box, and supply any additional characters that should trigger content assist.
If your cursor is in a position where content assist is available, a pop-up list of all available choices is displayed. For each of these choices, a brief description of the code is provided.