Skip to content
| Marketplace
Sign in
Visual Studio Code>AI>Google Antigravity PatchNew to Visual Studio Code? Get it now.
Google Antigravity Patch

Google Antigravity Patch

Zeyu Tang

|
1 install
| (0) | Free
Patch the Google Antigravity extension with settings that change its native behavior, such as moving its interface to a tab in the secondary side bar or attaching the editor selection to chat messages.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Google Antigravity Patch

VS Marketplace VS Marketplace downloads Open VSX Open VSX downloads

Patch the Google Antigravity extension with settings that change its native behavior, such as moving its interface to a tab in the secondary side bar or attaching the editor selection to chat messages.

What This Extension Patches

Settings live under the antigravityPatch.* namespace (prefix omitted below), and each defaults to Antigravity's native behavior. The one exception is the "Always applied" group at the end, which has no setting: installing the patch is the opt-in and uninstalling it is the undo.

Layout                                  # where Antigravity's interface sits in the window
   └── secondarySideBar                 # Antigravity as a tab in the secondary side bar if On
                                        #   (Off -> native: a view in the primary side bar)
Chat                                    # what goes with a message to Antigravity's agent
   ├── attachSelection                  # the lines selected in the editor if On
   │                                    #   (Off -> native: only what you add yourself)
   └── commentsFollowConversation       # editor comments move to the chat's conversation if On
                                        #   (Off -> native: they stay where they were left)
Always applied                          # no setting: installing this patch is the opt-in
   └── view switch flash                # switching back to Antigravity shows its chat as it
                                        #   was left (native: a shrunken copy flashes first)

Using This Patch

VS Code

Install from the VS Code Marketplace: Google Antigravity Patch

VSCodium, Cursor, Windsurf, and Other Forks

Install from the Open VSX Registry: Google Antigravity Patch

Get Antigravity Patched

  • After the install, click Restart Extensions in the notification that follows. That stops the view switch flash, which needs nothing turned on, and from then on attachSelection and commentsFollowConversation apply at once when you turn them on or off.
  • Turn on antigravityPatch.secondarySideBar in VS Code Settings, then click Reload Window in the notification that follows. Turning it off and reloading puts Antigravity back in the primary side bar.
  • Turn on antigravityPatch.attachSelection, and whatever you select in the editor goes with your next message to Antigravity, with no shortcut. The chat shows it as a pending comment on the selected lines, as the gutter's + button would.
  • Turn on antigravityPatch.commentsFollowConversation, and the comments you leave in the editor move to whichever conversation the chat shows, so they go with your next message wherever you send it.

Caveats

  • While an editor tab shows a webview, such as a Markdown preview, notifications offer Reload Window instead of Restart Extensions, which would leave that tab stale.
  • An Antigravity update can take one more refresh after its own, which a notification offers.
  • secondarySideBar needs VS Code 1.106 or later.
  • Dragging Antigravity elsewhere overrides secondarySideBar until you choose Reset Location in its context menu.
  • With attachSelection, a selection goes with every message until you clear it or delete its comment in the chat.
  • Uninstalling restores Antigravity after a VS Code restart, but disabling leaves it patched.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft