AutoComplete and AutoSuggest

Use this feature to automatically complete the typing of many common and standard programming terms. When you begin typing in the editor, a drop-down list of probable matches for the term you started typing is displayed.

Auto-Suggest suggests a single word if that word matches something that has already been typed.

Auto-Complete inserts the rest of the word to the right of the cursor when a suggestion is selected. Use the scroll bar to scroll through the list (if necessary) and select the term or phrase that you want to insert at the cursor's position. Double-click or press the Tab key (or Enter on your keyboard) to insert the selection.

In the example below, the user typed the character "D", and is selecting to insert the phrase "DEFINEEVENT" into the code. The selection always replaces the character(s) typed before the _AutoComplete/AutoSuggest drop-down was invoked (FIG. 162).

FIG. 162 Autocomplete and AutoSuggest example

NOTE: AutoComplete/AutoSuggest is enabled by default. Enable or disable this feature by toggling the Enable AutoComplete/ AutoSuggest check box in the Editor - Display and Indentions tab of the Preferences dialog.

    • Note that AutoComplete/AutoSuggest is case-sensitive. Typically section headings are capitalized and commands are not.
    • Use the Edit > Rescan Current Source File option to rescan the active file and rebuild the symbol information utilized by the AutoComplete/AutoSuggest feature.
    • With AutoComplete/AutoSuggest enabled, the program will suggest a name that has been previously defined within the source code as you type in a variable name, device name or a reserved identifier,
    • There is no default keystroke assignment for Next Suggestion (to avoid conflicting with pre-existing custom keystrokes). You must set your own keystroke to take effect.
    • Stack Variables/Parameters only auto-suggest when they are within the scope of the CALL, FUNCTION or EVENT that they were declared in.

results matching ""

    No results matching ""