Open In Antigravity is a VS Code-compatible extension that opens the selected item's project root in Antigravity from the Explorer context menu.
Features
- Shows one Explorer context menu item:
Open In Antigravity. - Searches upward for
.git, then falls back to the matching workspace root, then the selected folder. - For files, starts from the containing folder.
- Supports Windows, macOS, and Linux.
Platform Defaults
When both openInAntigravity.executablePath and openInAntigravity.customCommand are empty, the extension uses these defaults:
| Platform | Launch behavior |
|---|---|
| Windows | Directly runs Antigravity's Electron CLI entry when installed in a common location; otherwise uses hidden PowerShell Start-Process fallback |
| macOS | First checks common .app bundle paths and runs Antigravity's bundled CLI when available; otherwise falls back to /usr/bin/open -a "Google Antigravity" <path> and /usr/bin/open -a "Antigravity" <path> |
| Linux | antigravity <path> |
Settings
{
"openInAntigravity.executablePath": "",
"openInAntigravity.macAppName": "Google Antigravity",
"openInAntigravity.customCommand": "",
"openInAntigravity.preferWorkspaceRoot": false,
"openInAntigravity.showSuccessMessage": true
}
openInAntigravity.executablePath: Optional Antigravity executable, CLI, or.apppath.openInAntigravity.macAppName: macOS app name used byopen -aafter common.appbundle paths have been tried.openInAntigravity.customCommand: Custom launch command with${path}placeholder support. Overrides default launch logic.openInAntigravity.preferWorkspaceRoot: When enabled, prefer workspace root over.gitroot.openInAntigravity.showSuccessMessage: Show a success notification after an action runs.
Build
npx --yes @vscode/vsce package
The command generates:
open-in-antigravity-0.0.7.vsix