Want to code at lightning speed with Google Antigravity? This comprehensive guide reveals every keyboard shortcut, hidden feature, and power user trick to maximize your productivity with Gemini 3.
| Shortcut | Action |
|---|---|
Cmd/Ctrl + Shift + P | Open Command Palette |
Cmd/Ctrl + P | Quick File Open |
Cmd/Ctrl + Shift + F | Global Search |
Cmd/Ctrl + B | Toggle Sidebar |
Cmd/Ctrl + J | Toggle Terminal |
Cmd/Ctrl + ` | Toggle AI Panel |
Cmd/Ctrl + \ | Split Editor |
Cmd/Ctrl + W | Close Current Tab |
Cmd/Ctrl + Shift + T | Reopen Closed Tab |
Cmd/Ctrl + Tab | Switch Tabs |
| Shortcut | Action |
|---|---|
Cmd/Ctrl + I | Open Inline AI Chat |
Cmd/Ctrl + K | AI Quick Edit |
Cmd/Ctrl + Shift + I | Open AI Panel |
Cmd/Ctrl + Enter | Accept AI Suggestion |
Escape | Dismiss AI Suggestion |
Tab | Accept Inline Completion |
Cmd/Ctrl + ] | Next AI Suggestion |
Cmd/Ctrl + [ | Previous AI Suggestion |
Cmd/Ctrl + Shift + A | Start Agent Mode |
| Shortcut | Action |
|---|---|
Cmd/Ctrl + D | Select Next Occurrence |
Cmd/Ctrl + Shift + L | Select All Occurrences |
Alt + Up/Down | Move Line Up/Down |
Alt + Shift + Up/Down | Copy Line Up/Down |
Cmd/Ctrl + Shift + K | Delete Line |
Cmd/Ctrl + / | Toggle Comment |
Cmd/Ctrl + Shift + / | Toggle Block Comment |
Cmd/Ctrl + L | Select Current Line |
Cmd/Ctrl + Shift + \ | Jump to Matching Bracket |
| Shortcut | Action |
|---|---|
Cmd/Ctrl + Shift + A | Start Agent Mode |
Cmd/Ctrl + Shift + M | Open Manager View |
Cmd/Ctrl + . | Quick Agent Command |
| Shortcut | Action |
|---|---|
Cmd/Ctrl + Shift + S | Pause Agent |
Cmd/Ctrl + Shift + R | Resume Agent |
Cmd/Ctrl + Shift + X | Stop Agent |
Cmd/Ctrl + Shift + Y | Accept All Changes |
Cmd/Ctrl + Shift + N | Reject All Changes |
| Shortcut | Action |
|---|---|
Cmd/Ctrl + Shift + 1-9 | Switch to Agent 1-9 |
Cmd/Ctrl + Alt + N | New Agent Instance |
Cmd/Ctrl + Alt + M | Merge Agent Results |
Beyond the obvious commands, Antigravity has powerful hidden features:
| Command | Description |
|---|---|
/codebase | Load entire codebase into context |
/file [path] | Load specific file |
/folder [path] | Load entire folder |
/git diff | Show uncommitted changes |
/git log | Show recent commits |
/context | Show current context usage |
/clear | Clear conversation history |
| Command | Description |
|---|---|
/component [name] | Generate React component |
/hook [name] | Generate custom hook |
/api [endpoint] | Generate API route |
/test | Generate tests for current file |
/types | Generate TypeScript types |
/docs | Generate documentation |
| Command | Description |
|---|---|
/refactor | Suggest refactoring options |
/rename [old] [new] | Rename across codebase |
/extract | Extract selection to function |
/inline | Inline selected function |
/optimize | Optimize current file |
| Command | Description |
|---|---|
/explain | Explain selected code |
/debug | Debug current error |
/fix | Fix current issues |
/review | Review current file |
/security | Security scan |
/perf | Performance analysis |
Open settings with Cmd/Ctrl + , and search for:
{
// Enable experimental features
"antigravity.experimental.enabled": true,
// Increase context window usage
"antigravity.context.maxTokens": 1000000,
// Enable aggressive autocomplete
"antigravity.autocomplete.aggressive": true,
// Auto-save AI changes
"antigravity.agent.autoSave": true,
// Show token usage in status bar
"antigravity.ui.showTokenUsage": true
}
Add these to your settings.json:
{
// Unlock beta Agent features
"antigravity.agent.beta": true,
// Enable parallel code generation
"antigravity.generation.parallel": true,
// Increase inline completion length
"antigravity.autocomplete.maxLength": 500,
// Enable smart context detection
"antigravity.context.smart": true,
// Show AI confidence scores
"antigravity.ui.showConfidence": true,
// Enable voice commands (beta)
"antigravity.voice.enabled": true,
// Custom model temperature
"antigravity.model.temperature": 0.7,
// Debug mode for troubleshooting
"antigravity.debug": true
}
Cmd/Ctrl + Shift + PShortcut sequence: Cmd+Shift+P → "nc" → Enter → Type name → Enter
Cmd/Ctrl + KTotal time: ~5 seconds
Cmd/Ctrl + ICmd/Ctrl + Shift + A (Agent Mode)Cmd/Ctrl + Shift + Y to accept allCmd/Ctrl + Shift + FCmd/Ctrl + IAntigravity automatically detects relevant files. Enable it:
"antigravity.context.smart": true
When you ask about authentication, it automatically loads:
auth.tsmiddleware.tssession.tsEnable voice coding:
"antigravity.voice.enabled": true
Trigger with Cmd/Ctrl + Shift + V:
View AI suggestion history:
Cmd/Ctrl + Shift + HShare your context with teammates:
Cmd/Ctrl + Shift + CCreate specialized AI behaviors:
// In .antigravity file
{
"personas": {
"security-expert": {
"systemPrompt": "You are a security expert. Always consider vulnerabilities.",
"temperature": 0.3
},
"creative-architect": {
"systemPrompt": "You are a creative solutions architect.",
"temperature": 0.9
}
}
}
Switch personas: Cmd/Ctrl + Shift + P → "Switch Persona"
Enable hidden code lens features:
"antigravity.codeLens.aiActions": true
Above each function you'll see:
Antigravity can auto-manage imports:
"antigravity.imports.autoOrganize": true,
"antigravity.imports.autoAdd": true,
"antigravity.imports.autoRemove": true
Never manually import again!
Save common context configurations:
// .antigravity
{
"contextPresets": {
"frontend": ["src/components/**", "src/hooks/**", "src/styles/**"],
"backend": ["src/api/**", "src/lib/db/**", "src/services/**"],
"full-stack": ["src/**", "!node_modules", "!.next"]
}
}
Load preset: /context frontend
Combine commands for complex operations:
/file src/components/Button.tsx + /test + /docs
This loads the file, generates tests, AND adds documentation.
Reference files naturally in conversation:
Looking at @src/lib/auth.ts, I notice the token refresh
logic in @src/middleware.ts might conflict. Can you check?
Never touch the mouse:
Cmd+Shift+A - Start agentEnter - ExecuteCmd+Shift+Y - AcceptCmd+S - SaveCmd+Shift+G - Git commitWhen context gets cluttered:
/clear - Clear history/context [preset] - Load fresh contextGenerate snippets on the fly:
/snippet "async function with try-catch"
Saves to your snippets for future use.
| Problem | Shortcut Solution |
|---|---|
| Slow responses | /clear then retry |
| Wrong context | /context to check, /file to reload |
| Bad suggestions | Cmd+[ for alternative |
| Agent won't stop | Cmd+Shift+X force stop |
| UI frozen | Cmd+Shift+P → "Reload Window" |
Enable debug mode temporarily:
Cmd/Ctrl + Shift + P → "Toggle Debug Mode"
Shows:
Open keybindings: Cmd/Ctrl + K then Cmd/Ctrl + S
Popular custom bindings:
[
{
"key": "cmd+shift+g",
"command": "antigravity.generateTests"
},
{
"key": "cmd+shift+d",
"command": "antigravity.generateDocs"
},
{
"key": "cmd+shift+e",
"command": "antigravity.explainSelection"
},
{
"key": "cmd+shift+o",
"command": "antigravity.optimizeFile"
},
{
"key": "cmd+alt+r",
"command": "antigravity.refactorSuggestions"
}
]
If using Vim extension:
"vim.normalModeKeyBindingsNonRecursive": [
{
"before": ["<leader>", "a", "i"],
"commands": ["antigravity.inlineChat"]
},
{
"before": ["<leader>", "a", "g"],
"commands": ["antigravity.startAgent"]
}
]
Yes! Every Antigravity command can be rebound in the keyboard shortcuts editor.
Most shortcuts work, but some are disabled during active agent execution. Use Cmd+Shift+S to pause first.
Check the Command Palette (Cmd+Shift+P) and type "antigravity" - all commands are listed there, including undocumented ones.
Enable experimental features:
"antigravity.experimental.enabled": true
Yes! Export from Command Palette: "Export Keybindings" and share the JSON file.
Mastering Google Antigravity's shortcuts and hidden features can 10x your development speed. Start with the essentials, gradually incorporate advanced features, and customize everything to match your workflow.
Pro tip: Print this guide and keep it next to your keyboard until the shortcuts become muscle memory.
Explore more ways to boost your productivity with our curated prompts and MCP servers for extending Antigravity's capabilities.
Last updated: December 2024 Know a hidden feature we missed? Let us know in the comments!