The code hints feature helps you insert and edit code quickly and without mistakes. When you type certain characters in Code view, such as the first letters of a tag or attribute or CSS property name, a list appears, suggesting options to complete your entry. You can use this feature to insert or edit code, or just to see the available attributes for a tag, the available parameters for a function, or the available methods for an object.
Code hints are available for a variety of kinds of code. An appropriate list of items appears when you type a particular character that indicates the beginning of a piece of code; for example, to display a code hints list of HTML tag names, type a start bracket (<).
TIP |
|
For best results, especially when using code hints for functions and objects, set the Delay option in the Code Hints preferences dialog box to a delay of 0 seconds. For more information, see Setting code hints preferences. |
The code hints list disappears when you press Backspace (Windows) or Delete (Macintosh).
A list of items (such as tag names or attribute names) appears.
TIP |
|
To close the list at any time, press Escape. |
TIP |
|
If a recently created CSS style doesnt appear in a code hints list of CSS styles, select Refresh Style List from the code hints list. If Design view is showing, some invalid code might appear in Design view temporarily after you select Refresh Style List; to remove that invalid code from Design view, after you finish inserting the style, press F5 to refresh Design view again. |
By default, Dreamweaver determines what tag needs to be closed and closes it for you. You can change this default behavior so that Dreamweaver inserts a closing tag after you type the final angle bracket (>) of the opening tag, or so that it inserts no closing tag at all. Select Edit > Preferences > Code Hints, and then select one of the Close Tags options.