IntelliJ Translation Plugin 可将 AI 翻译能力直接添加到 JetBrains IDE 中。将其连接到 CometAPI,无需离开编辑器即可翻译代码和文本。Documentation Index
Fetch the complete documentation index at: https://apidoc.cometapi.com/llms.txt
Use this file to discover all available pages before exploring further.
前提条件
- IntelliJ IDEA 或其他 JetBrains IDE
-
已安装 Translation Plugin —— 在 JetBrains Marketplace 中搜索 Translation

- 拥有一个已启用 API key 的 CometAPI 账户
设置
获取你的 CometAPI API key
配置翻译引擎
点击 IDE 工具栏中的 Translation Plugin 图标 → Settings → Translation。选择 OpenAI Translation 作为引擎。在右侧的设置面板中,在 API Endpoint 字段中输入 

https://api.cometapi.com(第二个字段默认是 /v1/chat/completions)。将你的 CometAPI key 粘贴到 API Key 中,然后点击 Confirm。





