packages/kilo-docs/pages/code-with-ai/features/autocomplete/index.md
Kilo Code's autocomplete feature provides intelligent code suggestions and completions while you're typing, helping you write code faster and more efficiently. It offers both automatic and manual triggering options.
{% tabs %} {% tab label="VSCode" %}
The extension uses Fill-in-the-Middle (FIM) completion routed through the Kilo Gateway. It analyzes the code before and after your cursor to generate contextually accurate inline suggestions.
You can choose between two FIM models:
mistralai/codestral-2508) by Mistral AI — the default, billed through your Kilo account.inception/mercury-edit-2) by Inception — temporarily available via BYOK (Bring Your Own Key) only; Kilo Gateway support is coming soon.Autocomplete is enabled by default and automatically shows inline suggestions as you type. Suggestions appear as ghost text that you can accept with Tab.
Press Cmd+L (Mac) or Ctrl+L (Windows/Linux) to manually request a completion at your cursor position.
{% callout type="note" %}
This keybinding requires kilo-code.new.autocomplete.enableSmartInlineTaskKeybinding to be enabled in VS Code settings. It is disabled by default.
{% /callout %}
Autocomplete requests are routed through the Kilo Gateway. You can pick the FIM model under Settings → Models → Autocomplete model:
mistralai/codestral-2508) — the default. Billed through your Kilo account, or free when you add your own Mistral Codestral key via BYOK. See Setting Up Mistral for Free Autocomplete.inception/mercury-edit-2) — a fast diffusion-based FIM model by Inception. Temporarily requires an Inception BYOK key until Kilo Gateway support lands. Add one from the BYOK page in the Kilo platform. See Bring Your Own Key (BYOK) for setup details.{% callout type="note" %} Mercury Edit 2 is only available through BYOK for now — Kilo Gateway support is coming soon. If you select Mercury Edit 2 without a valid Inception BYOK key configured, autocomplete requests will fail — switch back to Codestral or add an Inception key to continue. {% /callout %}
The extension displays an autocomplete status indicator in the VS Code status bar, including:
You can temporarily disable autocomplete by clicking the status bar item to snooze it. Click again to unsnooze and re-enable suggestions.
The extension automatically detects if GitHub Copilot inline suggestions are enabled and warns you about potential conflicts. Disable Copilot's inline completions for the best experience with Kilo Code autocomplete.
{% /tab %} {% tab label="VSCode (Legacy)" %}
Autocomplete analyzes your code context and provides:
When enabled, Kilo Code automatically shows inline suggestions when you pause typing. This provides a seamless coding experience where suggestions appear naturally as you work.
For more control over when suggestions appear:
Cmd+L (Mac) or Ctrl+L (Windows/Linux)This is ideal for:
You can customize this keyboard shortcut as well in your VS Code settings.
When enabled, Kilo Code will suggest completions as you type in the chat input. Press Tab to accept suggestions.
Autocomplete currently uses Codestral (by Mistral AI) as the underlying model. This model is specifically optimized for code completion tasks and provides fast, high-quality suggestions.
Kilo Code automatically selects a provider for autocomplete in the following priority order:
codestral-latest)mistralai/codestral-2508)mistralai/codestral-2508)mistral/codestral-latest)mistral.codestral-2508-v1:0)mistralai/Codestral-22B-v0.1)codestral/codestral-latest)mistralai/codestral-22b-v0.1)codestral:latest){% callout type="note" %} Model Selection is Currently Fixed: At this time, you cannot freely choose a different model for autocomplete. The feature is designed to work specifically with Codestral, which is optimized for Fill-in-the-Middle (FIM) completions. Support for additional models may be added in future releases. {% /callout %}
We recommend disabling rival autocompletes to optimize your experience with Kilo Code. To disable GitHub Copilot autocomplete in VSCode, go to Settings and navigate to GitHub > Copilot: Advanced (or search for 'copilot').
Then, toggle to 'disabled':
{% image src="https://github.com/user-attachments/assets/60c69417-1d1c-4a48-9820-5390c30ae25c" alt="Disable GitHub Copilot in VSCode" width="800" caption="Disable GitHub Copilot in VSCode" /%}
If using Cursor, go to Settings > Cursor Settings > Tab, and toggle off 'Cursor Tab':
{% image src="https://github.com/user-attachments/assets/fd2eeae2-f770-40ca-8a72-a9d5a1c17d47" alt="Disable Cursor autocomplete" width="800" caption="Disable Cursor autocomplete" /%}
{% /tab %} {% /tabs %}
{% tabs %} {% tab label="VSCode" %}
{% /tab %} {% tab label="VSCode (Legacy)" %}
{% /tab %} {% /tabs %}
{% callout type="tip" %} When to use chat vs autocomplete: Use chat for multi-file changes, refactoring, or when you need to explain intent. Use autocomplete for quick, localized edits where the context is already clear from surrounding code. {% /callout %}
{% callout type="tip" %} Treat suggestions as drafts: Accept autocomplete suggestions quickly, then refine. It's often faster to fix a 90% correct suggestion than to craft the perfect prompt. {% /callout %}