AD SPACE AVAILABLE · BRAND PARTNERS WELCOME

Configuring and Optimizing Continue in JetBrains IDEs for Local Autocomplete and Chat

장은미 · 365Finds Editorial
Indexed 88,650 Wiki articles

Put 365 Wiki to work with your AI

Copy the prompt below, paste it into the AI you already use, then ask your question.

Download full Skill

Try it with the prompt first. If you use 365 Wiki often, install the full 365Wiki Skill so you do not have to paste it again. No regular AI? Gemini or Microsoft Copilot on the web will work.

365Wiki Skill

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:

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


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.

  1. Open Settings (Ctrl + Alt + S on Windows/Linux, Cmd + , on macOS).
  2. Navigate to Editor > General > Code Completion.
  3. Under Machine Learning-Assisted Completion, uncheck Enable Full Line suggestions.
  4. 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:

To fix this:

  1. Go to Settings > Keymap.
  2. In the search bar, type Continue.
  3. Locate Continue: Focus Chat and Continue: Add Selected Code to Context.
  4. Rebind them to an unassigned combination such as Alt + Shift + J or 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:


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.

References