In addition to standard completion candidates and words already found in the document, you can define syntax-specific completion candidates by customizing the syntax.
To define words that appear in the completion list, select Completion from the list on the left side of the syntax editor, then add entries to the list on the right. See Define a syntax for how to open the syntax editor.
Add words to the list as follows:
| Field | Description |
|---|---|
| Completion | The word entered here appears in the completion list. |
| Type | An optional note indicating the kind of completion item. |
If you do not define any words here, CotEditor uses words generated from your syntax highlighting definition as completion candidates.
Whether syntax-specific candidates are actually included in the completion list also depends on the completion settings in Mode settings.