Eclipse Marketplace 中提供的 Google Antigravity 扩展程序将 Antigravity Agent 直接引入 Eclipse。无需离开 Eclipse 工作区,即可委派复杂的编程任务、运行多步骤 Agent 工作流,并审阅建议的文件更改。
前提条件
在安装扩展之前,请确保满足以下先决条件:
- Eclipse:在 macOS、Linux 或 Windows 上运行的 Eclipse 2026-06 或更高版本。
- Antigravity 使用权限:拥有任意 Antigravity 方案(包括免费版)的 Google 账号,或已启用 Gemini Enterprise 的企业账号。
安装与配置
请按以下步骤在 Eclipse 中安装 Google Antigravity 扩展程序:
- Open Eclipse.
- Click Help in the top menu bar, then select Eclipse Marketplace… from the drop-down menu.
- 搜索 Google Antigravity(由 Antigravity Eclipse Publisher 发布)。
- 点击 Install 并完成安装向导。
- 根据提示重启 Eclipse。安装后首次启动时,Antigravity 视图会在编辑器区域右侧自动打开。请确认信任项目文件夹以继续操作。
若要随时打开或隐藏 Antigravity 视图,请在顶部菜单栏中选择 Antigravity > Toggle Chat(或在 macOS 上按 Cmd + Option + E,在 Windows 和 Linux 上按 Ctrl + Alt + K)。
身份认证与登录
首次启动时,请按照 Antigravity 面板中的登录提示在浏览器中完成身份验证:
- 个人账号:使用您的个人 Google 账号登录。
- 企业账号:点击 Sign in with Gemini Enterprise,使用您的企业身份(包括 BYOID 和员工身份联合)完成身份验证,然后根据提示选择贵组织的 Google Cloud Project 和 Region。
To switch accounts, change authentication methods, or configure AI model and MCP server preferences later, select Antigravity > Settings… in the top menu bar.
Gemini Enterprise 身份认证了解企业开发者和管理员如何使用 Google Cloud 凭据和 IAM 策略配置登录。
Antigravity App 概览了解登录和账号权限在 Antigravity App 及各个开发者界面中的运作方式。