Step-by-step guide to setting up and configuring autocomplete in Continue, including Codestral, Ollama, and IDE settings.
api.mistral.ai, then make sure to set "apiBase": "https://api.mistral.ai/v1" in your tabAutocompleteModel.Multiline Autocompletions: Controls multiline completions for autocomplete. Can be set to always, never, or auto. Defaults to autoDisable autocomplete in files: List of comma-separated glob pattern to disable autocomplete in matching files. E.g., ”_/.md, */.txt”config.json (Deprecated Format)config.yaml format offers model-level configuration using the autocompleteOptions field. See the YAML Reference for more details.
config.json configuration format offers configuration options through tabAutocompleteOptions. See the JSON Reference for more details.
ollama run qwen2.5-coder:1.5b to verify that the model is downloaded."editor.inlineSuggest.enabled" is set to true (use cmd/ctrl + , then search for this and check the box)"multilineCompletions": "always" in tabAutocompleteOptions. By default, it is "auto". If you still find that you are only seeing single-line completions, this may be because some models tend to produce shorter completions when starting in the middle of a file. You can try temporarily moving text below your cursor out of your active file, or switching to a larger model.
"editor.inlineSuggest.enabled": false in VS Code settings to disable automatic suggestionseditor.action.inlineSuggest.triggerPreferences: Open Keyboard Shortcuts, and enter the keyboard shortcuts settings page.editor.action.inlineSuggest.acceptNextLine.inlineSuggestionVisible && !editorReadonly.
This will make multi-line completion (including continue and from VS Code built-in or other plugin snippets) still work, and you will see multi-line completion. However, Tab will only fill in one line at a time. Any unnecessary code can be canceled with Esc.
If you need to apply all the code, just press Tab multiple times.