Code Completion

Chime can suggest completions based on the context and semantics of your code.

Completion results with preview and placeholders
Completion results with preview and placeholders

Listing

You can request completions manually with CMD-Space, or with the ESC key. There are also two ways to get completions suggested automatically, which are both on by default. After beginning to type, completions are suggested after a delay. Certain special characters, such as “.”, can also immediately trigger completion suggestions.

Both of these automatic behaviors can be configured in settings.

Previewing

Code completion will show a preview of the currently-selected completion result within your code. If the result contains arguments, those will also be shown with placeholders that have both name and type information, if available.

Accepting

Accepting the current suggestion in full can be done with Return and Enter key. By default, the Tab key will advance the current completion by identifier components. This is a handy when many results have similar prefixes. This feature is also configurable in settings.

Dismissing

Of course, you don’t need to accept any completion results. You can dismiss the completion UI with CMD-Space or ESC. Once manually dismissed, completion results will not be automatically presented again until the insertion position is changed, regardless of your current preferences.