Goland 通过 ACP 连接 Claude Code

480 阅读1分钟

前言

2025年12月5日,JetBrains 官方正式推出了对 ACP 协议的正式支持,可以通过下载各个 JetBrains IDE 的2025.3 Release Candidate build版本来使用 ACP 协议。

配置

在本文中将以 Goland IDE 为例,介绍如何通过 ACP 协议连接 Claude Code。

安装 Goland 2025.3 Release Candidate build

在 Toolbox 安装 Goland 2025.3 Release Candidate 版本。

goland-toolbox-rc-version.png

配置

  1. 打开 AI Chat 工具窗口,目前需要登录才能使用 AI Chat 功能,官方后续会进行调整。在选项卡选择配置 ACP 代理,会创建打开~/.jetbrains/acp.json 文件。

goland-acp-config-window.png

  1. 安装配置 Claude Code ACP 代理

使用 pnpm install @zed-industries/claude-code-acp 安装 claude-code-acp。

修改 ~/.jetbrains/acp.json 文件,添加以下内容:

{
    "agent_servers": {
        "Claude Code Agent": {
            "command": "pnpx",
            "args": [
                "@zed-industries/claude-code-acp"
            ],
        }
    }
}

3. 配置完在 Chat界面选择 Claude Code Agent

goland-select-claude-agent.png

尝试使用 Claude Code Agent 进行代码生成和调试,可以顺利看到 Claude Code Agent 的响应。

goland-claude-agent-response.png

总结

通过 ACP 协议连接 Claude Code Agent,可以方便地在 Goland 中使用 Claude Code 进行代码生成和调试。

参考