AD SPACE AVAILABLE · BRAND PARTNERS WELCOME

Enabling and Configuring JetBrains AI Assistant Across Supported IDEs

365Finds Editorial
Indexed 11,430 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

JetBrains AI Assistant integrates generative AI coding capabilities, autonomous multi-step agents, and deep semantic code intelligence directly into JetBrains development environments, including IntelliJ IDEA, PyCharm, WebStorm, GoLand, CLion, Rider, PhpStorm, RubyMine, RustRover, DataGrip, and DataSpell. Rather than operating as an isolated chat interface or a generic text predictor, the assistant connects to the IDE's internal project index, Abstract Syntax Trees (AST), and version control systems to deliver context-aware code generation, multi-line autocompletions, next-edit suggestions, automated test authoring, and structural refactoring. Successfully deploying and configuring JetBrains AI Assistant requires software developers and engineering leads to verify IDE version prerequisites, complete installation and licensing activation across individual or enterprise tiers, tune in-editor completion parameters, establish repository-level project rules, and configure security boundaries around model providers and external Model Context Protocol (MCP) tools.

IDE Compatibility and Version Prerequisites

Before enabling JetBrains AI Assistant, developers must ensure their local environment satisfies specific runtime, platform, and organizational criteria.

Supported Environments and IDE Version Baselines

JetBrains AI Assistant is distributed as a plugin available across the JetBrains product suite. Supported IDEs require specific baseline releases:

Compute Topologies: Cloud LLMs vs. Local Hardware

By default, JetBrains AI Assistant executes inferences through cloud-hosted large language models managed by the JetBrains AI service or third-party API providers. In this configuration, developer workstations experience negligible additional CPU, GPU, or battery overhead.

However, teams utilizing self-hosted open-weight models (such as Ollama or private OpenAI-compatible inference endpoints) must allocate dedicated workstation compute, including sufficient dedicated VRAM (typically 8 GB to 24 GB depending on parameter quantizations) to support real-time token streaming.

Organizational Prerequisites

For developers using IDE licenses provisioned by an employer or educational institution, access to AI features is governed at the organization level:

  1. An organization administrator must enable the JetBrains AI Service within the corporate JetBrains Account administration console.
  2. If the organization enforces strict IP governance or security policies, administrators can allocate shared credit pools or designate approved third-party providers before developers can initialize activation.

Installing and Activating JetBrains AI Assistant

The JetBrains AI Assistant plugin is not enabled by default on personal installations and will not access proprietary source code until explicitly installed and activated.

Installation Methods

Developers can install the plugin through three primary entry points in supported IDEs:

  1. JetBrains Marketplace (Settings):
    • Navigate to Settings (on Windows/Linux) or Preferences (on macOS) via Ctrl+Alt+S or Cmd+,.
    • Select Plugins in the left sidebar and choose the Marketplace tab.
    • Search for AI Assistant in the search field.
    • Click Install on the official JetBrains plugin entry and restart the IDE if prompted.
  2. AI Chat Tool Window:
    • Click the AI Chat icon on the right-hand tool window dock.
    • Click the Install Plugin button displayed within the empty tool window to trigger background installation.
  3. JetBrains AI Window Header Widget:
    • In the modern IDE UI header, locate the JetBrains AI status widget.
    • Click Let's Go to download and initialize the plugin automatically.

Licensing Tiers and Activation Scenarios

Once installed, developers must activate the plugin using an appropriate licensing model. JetBrains supports multiple authentication paths under activation scenarios:

Activation OptionSubscription RequiredAvailable CapabilitiesPrimary Billing Entity
JetBrains AI SubscriptionYes (Free, Pro, Business, Ultimate, Enterprise)Full access to all cloud models, built-in agents, inline completions, and next-edit suggestionsJetBrains (monthly quota or shared corporate pool)
Bring Your Own Key (BYOK)No (uses third-party API key)Inline completion and chat features supported by the chosen third-party modelsThird-party provider (OpenAI, Anthropic, Google Vertex AI)
Provider Account (OAuth)No (OAuth login with provider)Specialized access restricted to the authenticated agent (e.g., Claude Agent, GitHub Copilot)Dedicated agent provider
ACP-Compatible AgentNoInterfacing with custom external agents via the Agent Client ProtocolIndependent agent provider
Local / Custom ModelsNoFeatures supported by the locally running inference server (e.g., Ollama, vLLM)Self-hosted infrastructure

Licensing Tiers Breakdown

Legal Consent and Terms Acceptance

During the initial activation handshake, developers must review and accept the JetBrains AI Terms of Service and the Acceptable Use Policy. These terms formalize that source code transmitted for inference is processed ephemerally without being retained to train base public foundation models.


Core IDE Configuration and Behavioral Settings

Global configuration options for the plugin are centralized under Settings | Tools | AI Assistant (or Preferences | Tools | AI Assistant on macOS). Reviewing the settings reference allows developers to align the tool with their coding habits.

Settings / Preferences
  ├── Tools
  │     └── AI Assistant
  │           ├── General Features (Name suggestions, pasted code, PR summaries)
  │           ├── Providers & API keys (BYOK, OAuth, Model selection)
  │           ├── Rules (Project-specific instructions)
  │           ├── Prompt Library (Custom prompt templates)
  │           ├── Skills (Debugger and runtime tools)
  │           └── Agents (ACP agent registries)
  └── Editor
        └── General
              └── Code Completion
                    └── Inline (Cloud completion, Next Edit Suggestions)

Automation Feature Toggles

Developers can toggle specific behavioral aids to prevent intrusive suggestions:

Natural Language Customization

By default, AI Assistant responds in the system locale or English. Teams working in multi-lingual environments can specify a preferred natural language under Settings | Tools | AI Assistant | Natural Language to ensure explanations, docstrings, and commit messages are synthesized in their required working language.

Message Trimming Threshold

When working with expansive codebases, attaching multiple source files can quickly exceed large context windows. Under Settings | Tools | AI Assistant, developers can configure the Message Trimming Threshold (expressed as a percentage of the model's total context window). If an attached payload exceeds this threshold, AI Assistant automatically trims non-critical outer structures while preserving relevant function signatures and call sites, avoiding out-of-context token exceptions.


Configuring In-Editor Code Completion and Next Edit Suggestions

JetBrains IDEs implement a dual-engine architecture for code completions: local on-device completions and remote cloud completions.

Local Full Line vs. Cloud Multi-Line Completions

Understanding the distinction between completion mechanisms is essential for optimal configuration:

  1. Full Line Code Completion: Runs entirely locally on the developer's workstation using compact, language-specific neural network models packaged directly with the IDE. It executes offline with zero network latency and does not consume AI credits or send code off-machine.
  2. Cloud Code Completion: Powered by AI Assistant cloud LLMs. It generates multi-line code structures, entire method bodies, algorithmic logic, and accompanying documentation comments based on broader file context.

Configuring Inline Completion Parameters

To fine-tune inline completions, navigate to Settings | Editor | General | Code Completion | Inline:

Keystroke Shortcuts and Acceptance Controls

Inline ghost suggestions can be accepted or dismissed using standard keybindings:


AI Chat, Context Management, and Project Rules

The AI Chat tool window serves as an interactive pair-programming environment capable of reasoning across files, stack traces, and project history.

Context Referencing with Mentions

Rather than copying and pasting source snippets into the chat prompt, developers should supply targeted context using @ symbol references:

Searching Official Documentation with /docs

Developers seeking IDE guidance can query JetBrains documentation directly from the chat prompt using the /docs command. For example, entering:

/docs how do I configure remote Docker debugging for GoLand?

triggers a retrieval-augmented generation (RAG) query against official JetBrains product documentation, returning prescriptive steps with clickable deep links into the IDE's settings dialogs.

Custom Prompt Library

Teams often execute recurring architectural patterns, such as creating repository classes, mocking HTTP clients, or migrating legacy frameworks. Developers can standardize these prompts via Settings | Tools | AI Assistant | Prompt Library:

  1. Click Add (+) to create a new custom prompt template.
  2. Define a descriptive title (e.g., Generate Spring Data JPA Repository).
  3. Enter the template text, using dynamic placeholders such as $SELECTION to represent highlighted code.
  4. Assign the prompt to editor context menus for rapid one-click execution.

Enforcing Standards via Project Rules (ai-rules.md)

To prevent AI Assistant from generating code that violates repository conventions, teams can establish persistent project rules under Settings | Tools | AI Assistant | Rules or by committing a markdown file to the repository root at .jetbrains/ai-rules.md.

An effective rules file instructs the assistant on architectural boundaries, styling guides, and testing patterns:

# Project Architectural Guidelines

## Technology Stack
- Java 21 LTS with Spring Boot 3.3
- Build Tool: Gradle with Kotlin DSL
- Testing: JUnit 5, AssertJ, and Testcontainers (avoid Mockito for integration tests)

## Code Conventions
- Prefer immutable records for Data Transfer Objects (DTOs).
- Enforce explicit constructor injection; do not use field-level `@Autowired`.
- All public REST controllers must return `ResponseEntity<T>` with OpenAPI 3 annotations.
- Handle database operations asynchronously via R2DBC where reactive pipelines are present.

## Security Constraints
- Never log raw authorization tokens, customer personally identifiable information (PII), or passwords.
- Enforce parameter binding on all SQL and JPQL queries to prevent injection vulnerabilities.

AI Assistant reads .jetbrains/ai-rules.md and appends its constraints to prompts dispatched within the repository, ensuring completions adhere to team standards.


Coding Agents, ACP, and Model Context Protocol (MCP)

Modern releases of JetBrains AI Assistant expand beyond passive code suggestions into active, autonomous agent workflows.

Autonomous Coding Agents

Under Settings | Tools | AI Assistant | Agents, developers can configure specialized coding agents:

Model Context Protocol (MCP) Tools Integration

Through MCP tools, AI Assistant can interact with external environments, databases, container engines, and enterprise issue trackers.

To maintain security, developers must explicitly configure database permissions under Settings | Tools | AI Assistant:


Third-Party Providers and Custom Models (BYOK)

Organizations seeking to centralize AI expenditure or leverage internal model gateways can decouple AI Assistant from JetBrains-managed cloud subscriptions using the Bring Your Own Key configuration.

Configuring Third-Party Providers

Navigate to Settings | Tools | AI Assistant | Providers & API keys:

  1. Click Add Provider and select from supported commercial vendors:
    • OpenAI: Requires an OpenAI platform API key with access to models such as gpt-4o or o1.
    • Anthropic: Requires an Anthropic API key supporting claude-3-5-sonnet or claude-3-opus.
    • Google Cloud Vertex AI: Authenticates via Application Default Credentials (ADC) or service account keys.
  2. Enter the credential and test connection latency.
  3. Assign models to functional roles (e.g., fast models for inline code completions vs. larger reasoning models for AI Chat and refactoring).

Connecting Local and Custom Endpoints

For air-gapped environments or private data centers, developers can select custom models:

+-------------------------------------------------------------+
|                      Local Workstation                      |
|                                                             |
|  +------------------------+      +-----------------------+  |
|  |     JetBrains IDE      |      |     Ollama Server     |  |
|  |  (AI Assistant Plugin) | ---> | (http://localhost:    |  |
|  |                        | <--- |  11434/v1)            |  |
|  +------------------------+      +-----------------------+  |
+-------------------------------------------------------------+
  1. Launch a local inference server exposing an OpenAI-compatible API (such as Ollama, vLLM, or LM Studio).
  2. Under Providers & API keys, add a Custom OpenAI-Compatible provider.
  3. Configure the base URL (for example, http://localhost:11434/v1 for Ollama) and specify the loaded model identifier (such as qwen2.5-coder:32b or deepseek-coder-v2).
  4. Validate that local completions stream properly into the editor without external WAN egress.

Data Governance, Privacy, and Enterprise Controls

Deploying AI coding assistants in commercial settings requires transparent data privacy and auditing safeguards.

Data Transmission and Model Training Boundaries

JetBrains establishes clear data handling boundaries in its documentation and Trust Center:

Corporate Firewalls, Proxies, and SSL Inspection

Developer workstations operating within enterprise perimeters must allow outbound secure communication:

Quota Tracking and Disablement Options

The JetBrains AI status widget in the window header provides real-time visibility into usage metrics:

If developers need to suspend AI Assistant, options exist to disable features temporarily for a single project via the widget menu, disable cloud completion while keeping local full-line assistance, or uninstall the plugin permanently across the IDE installation.