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。





