Completions

Code completions are text suggestions that appear inline as you type in an editor. These suggestions can be lines or blocks of code based on the context of what you’re writing. Other names for code completions include inline suggestions, ghost text, or inline completions.

Tip

Completions are powered by GitHub Copilot. Ensure you’ve added GitHub Copilot as a language model provider.

Using code completions

When code completions are available, you’ll see ghost text appear in your editor as you type. The ghost text represents the suggested completion.

Interact with suggestions by:

  • Pressing the Tab key to accept the entire suggestion.
  • Pressing to accept the suggestion word-by-word for a single line suggestion, or line-by-line for multi-line suggestions.
  • Pressing Esc or continuing to type to dismiss the suggestion.

If you are not receiving suggestions:

  • Check if you’ve enabled inline completions in the settings (see Settings below).
  • Check that completions aren’t snoozed (paused). If they are, you can either wait for the snooze period to end or cancel the snooze.
  • Make sure you are authenticated with GitHub Copilot in the language model provider configuration.
  • Refer to the Troubleshooting guide for more help.

To learn more about GitHub Copilot code completions, visit the GitHub Copilot inline suggestions documentation. Note that we do not currently support Next Edit Suggestions (NES) in Positron Assistant.

Commands

Command Description
Positron Assistant: Toggle (Enable/Disable) Completions Enable or disable code completions from Positron Assistant altogether.
Snooze Inline Suggestions Pause code completions temporarily for a specified duration.
Cancel Snooze Inline Suggestions Resume code completions immediately if they have been snoozed.

Settings

Status bar icon

The Assistant status bar icon indicates the current state of code completions from Positron Assistant.

Assistant status bar icon

Assistant status bar icon

To manage code completions using the status bar icon:

  1. Click the status bar icon to open the popup.
  2. From the popup, you can enable or disable completions for the current file type, or for all files, or view the remaining time for snoozed completions.