Running a fully local AI coding assistant inside IntelliJ IDEA or PyCharm offers undeniable appeal: zero code telemetry leaves your workstation, compliance audits become trivial, and inline suggestions remain available on an airplane. Yet many software engineers install the Continue plugin, point it at a default Ollama endpoint, and abandon it within an hour because code suggestions lag by several seconds or the Tab key starts fighting native JetBrains refactoring tools.
At 365Finds, we consider Continue one of the few genuinely open-source developer tools capable of rivaling proprietary IDE copilot extensions. However, JetBrains environments demand deliberate tuning that VS Code does not. JetBrains IDEs feature sophisticated native completion engines, deeply entrenched keymaps, and stricter UI thread expectations. Here is how to configure Continue in IntelliJ IDEA and PyCharm for fast, collision-free local autocomplete and conversational assistance.
1. The Cardinal Rule: Split Autocomplete and Chat Models
The most frequent mistake 365Finds encounters is configuring a single multi-purpose 7B or 14B model for both chat and tab autocomplete. General conversational instruction models fail at real-time completion because they lack Fill-In-The-Middle (FIM) training and carry too many parameters to respond within an acceptable keystroke debounce window.
For an optimal local setup:
- Inline Autocomplete: Use a dedicated, compact FIM model. We recommend
qwen2.5-coder:1.5b-base(orqwen2.5-coder:1.5b) orstarcoder2:3b. These produce low-latency token bursts under 150 milliseconds on modern Apple Silicon (M-series) or Nvidia RTX GPUs (8GB+ VRAM). - Sidebar Chat & Refactoring: Use an instruction-tuned model with broader reasoning capabilities, such as
qwen2.5-coder:7b,qwen2.5-coder:14b, ordeepseek-r1:7b.
Pull both models into Ollama before touching your IDE settings:
ollama pull qwen2.5-coder:1.5b
ollama pull qwen2.5-coder:7b
2. Setting Up Continue Configuration (config.yaml)
Continue stores its configuration globally in ~/.continue/config.yaml on macOS and Linux, or %USERPROFILE%\.continue\config.yaml on Windows. While Continue still supports the legacy config.json, the modern config.yaml format is required for granular role definitions.
Open your configuration file or click the gear icon inside the Continue sidebar in IntelliJ/PyCharm, and structure your models using explicit roles:
name: JetBrains Local Stack
version: 1.0.0
schema: v1
models:
- name: Local Chat (Qwen 2.5 Coder 7B)
provider: ollama
model: qwen2.5-coder:7b
roles:
- chat
- edit
- name: Local Autocomplete (Qwen 2.5 Coder 1.5B)
provider: ollama
model: qwen2.5-coder:1.5b
roles:
- autocomplete
autocompleteOptions:
disable: false
maxPromptTokens: 512
debounceDelay: 250
modelTimeout: 1500
maxSuffixPercentage: 0.2
prefixPercentage: 0.3
Tuning Autocomplete Latency Parameters
debounceDelay: 250: The default 350ms delay feels sluggish to fast typists, but dropping below 200ms floods your local Ollama server with aborted inference requests during rapid typing. 250ms is the sweet spot.maxPromptTokens: 512: Truncating the context window from the default 1024 tokens to 512 dramatically accelerates first-token generation on mid-tier consumer hardware without sacrificing immediate function-level context.modelTimeout: 1500: If Ollama cannot deliver tokens within 1.5 seconds, Continue drops the suggestion rather than displaying stale ghost text after you have already typed past the target insertion point.
3. Resolving JetBrains Keymap and Completion Conflicts
JetBrains IDEs pack decades of built-in shortcuts and native code completion heuristics that actively clash with AI inline assistants unless properly decoupled.
Disable JetBrains Native Full Line Suggestions
Starting with version 2024.1, IntelliJ IDEA and PyCharm bundle native local deep learning models for "Full Line Code Completion". When enabled alongside Continue, the editor attempts to render two overlapping ghost text suggestions simultaneously, creating visual stutter and unpredictable cursor jumps.
- Open Settings (
Ctrl + Alt + Son Windows/Linux,Cmd + ,on macOS). - Navigate to Editor > General > Code Completion.
- Under Machine Learning-Assisted Completion, uncheck Enable Full Line suggestions.
- If you have JetBrains AI Assistant or GitHub Copilot installed, disable them to prevent multiple autocomplete providers from fighting for the editor cursor.
Fix the Ctrl + J / Cmd + J Collision
In VS Code, Continue uses Cmd + L for chat. In JetBrains, Continue assigns Chat to Cmd + J (macOS) or Ctrl + J (Windows/Linux).
However, in default IntelliJ keymaps:
Ctrl + Jtriggers Insert Live Template or Quick Documentation.- Triggering Continue often opens an IntelliJ template picker instead of focusing the AI sidebar.
To fix this:
- Go to Settings > Keymap.
- In the search bar, type
Continue. - Locate Continue: Focus Chat and Continue: Add Selected Code to Context.
- Rebind them to an unassigned combination such as
Alt + Shift + Jor override the existing shortcut if you do not use Live Template popups frequently.
Managing the Tab Key and Partial Acceptance
When Continue renders a gray inline suggestion:
- Press Tab to accept the full suggestion.
- Press Esc to dismiss it immediately.
- Press Ctrl + Right Arrow (or Cmd + Right Arrow on macOS) to accept suggestions token-by-token or word-by-word. This partial acceptance feature is invaluable when an LLM suggests the correct function call but invents invalid arguments.
4. Ollama Daemon Tuning for IDE Workloads
Even with optimized plugin settings, local completions will choke if the underlying Ollama inference server is misconfigured. When you ask a question in Continue's sidebar chat while typing code in the editor, both requests hit Ollama concurrently.
By default, Ollama processes requests serially. If a chat request is generating 30 tokens per second in the sidebar, tab autocomplete will freeze until the chat completes.
Set these environment variables before starting Ollama:
# Allow parallel processing of chat and autocomplete requests
export OLLAMA_NUM_PARALLEL=2
# Keep models pinned in GPU memory to avoid reload latency
export OLLAMA_KEEP_ALIVE=24h
# If running on a dedicated local inference box on your LAN
export OLLAMA_HOST=0.0.0.0:11434
On Linux or macOS with systemd/launchd, ensure these environment variables are exported in the service configuration rather than just your interactive shell profile.
5. The 365Finds Assessment
365Finds strongly favors Continue for development teams with strict data sovereignty mandates, defense contractors, and engineers working in offline or high-security networks. Paired with qwen2.5-coder:1.5b for completion and qwen2.5-coder:7b for chat, Continue delivers a responsive, genuinely zero-telemetry development flow.
The trade-off lies in multi-file repository indexing. JetBrains' proprietary indexing engine maintains deep abstract syntax trees across millions of lines of code. Continue relies on lightweight codebase embeddings and vector searches, which cannot match JetBrains native semantic refactoring (such as safe method renames across modules). Use Continue to accelerate typing boilerplate, scaffold unit tests, and explain complex regex, but allow IntelliJ's native compiler analysis to remain your source of truth for semantic safety.