Fix for Antigravity 2.0 hijacking the IDE, and how to restore your lost settings/extensions(For windows user)

Right now, if you install 2.0 with the default settings, only Antigravity 2.0 will launch, completely locking you out of the IDE.

The reason is due to how the Electron framework handles deployments. Electron loads resources based on directory location. Because the 2.0 update dumps its files into the exact same folder as the IDE, the newly added 2.0 app.asar completely hijacks the original Antigravity IDE executable.

1. How to fix the launcher (Toggle between IDE and 2.0)

Open PowerShell and run this to disable 2.0 and force the IDE to launch:

PowerShell

cd "$env:LOCALAPPDATA\Programs\Antigravity\resources"
Rename-Item app.asar app.asar.bak

If you ever want to switch back to using 2.0 only, run this:

PowerShell

cd "$env:LOCALAPPDATA\Programs\Antigravity\resources"
Rename-Item app.asar.bak app.asar

2. How to restore your missing settings, keymaps, and extensions

If you restore the IDE using the trick above, it will look like all your themes, keymaps, and extensions were wiped.

Here is why: Antigravity is built on VS Code, meaning it generates configuration folders based on the product name.

  • Original IDE (1.x) & 2.0 → Product name: “Antigravity”

    • Settings: ...\Roaming\Antigravity\

    • Extensions: ...\.antigravity\

    • (All your actual settings since Dec 2025 are trapped here)

  • Restored IDE → Product name: “Antigravity IDE”

    • Settings: ...\Roaming\Antigravity IDE\ (Empty new folder)

    • Extensions: ...\.antigravity-ide\ (Empty new folder)

The Fix:

  1. Go to C:\Users\<YourUsername>\AppData\Roaming. Copy the contents of the Antigravity folder and paste them into the Antigravity IDE folder. This restores your settings and keymaps.

  2. Go to C:\Users\<YourUsername>\. Copy the contents of the .antigravity folder and overwrite the contents in .antigravity-ide. This restores your extensions.

Getting a Windows path depth limit error?

If Windows blocks you from copying extensions due to path length limits, open an Administrator CMD and use a symlink (mklink) instead:

DOS

rmdir /S /Q "C:\Users\<YourUsername>\.antigravity-ide\extensions"
mklink /J "C:\Users\<YourUsername>\.antigravity-ide\extensions" "C:\Users\<YourUsername>\.antigravity\extensions"

TL;DR

  1. Google made a rookie Electron deployment mistake. Prioritizing app.asar is normal Electron behavior, but deploying a new product into the exact same folder as the old one is ridiculous.

  2. The 2.0 update overwrites the IDE in the same installation path but changes the product name, which splits the config folders.

  3. They did all this without writing any migration logic to move your settings over, effectively wiping your setup.

Tested and working for me. Thanks JDW64!

I’m so angry with the Antigravity devs right now that I’m reducing my credit spend with Google and moving to use Anthropic more.

Thank you, @JDW64

I copy-pasted your entire post to Antigravity. Gemini Flash 3.5 then proceeded to build me an UI Toggler (see screenshot). It works :smiley: my extensions and settings were restored as well.

Thank you so much!!

will this load my old conversation?

image
i got this warning, but your fix is working just fine and the chat history is also restored

That’s quite brilliant! My sincere thanks for sharing this insight. I embarked on a similar endeavor, crafting a toggler with Electron, yet I consistently encounter an error indicating that the ‘app.asar’ file is either busy or currently in use. Could you please divulge the specific toggler command you employed? Alternatively, would it be possible to share the application directly, perhaps via GitHub or another hosting platform? My gratitude.

gemini gave me below script based on above problem statement , save this file as Repair-Antigravity.ps1 and run powershell under admin mode and this is for windows

<#
.SYNOPSIS
Repair-Antigravity.ps1
Automates toggling between Antigravity 1.x IDE and 2.0, and migrates settings, keymaps, and extensions.
#>
$ErrorActionPreference = “Stop”
Write-Host “=============================================” -ForegroundColor Cyan
Write-Host " Antigravity Environment Repair & Toggle " -ForegroundColor Cyan
Write-Host “=============================================” -ForegroundColor Cyan
$resourcesPath = Join-Path $env:LOCALAPPDATA “Programs\Antigravity\resources”
$appAsar = Join-Path $resourcesPath “app.asar”
$appAsarBak = Join-Path $resourcesPath “app.asar.bak”
$oldConfig = Join-Path $env:APPDATA “Antigravity”
$newConfig = Join-Path $env:APPDATA “Antigravity IDE”
$oldExtensions = Join-Path $env:USERPROFILE “.antigravity”
$newExtensions = Join-Path $env:USERPROFILE “.antigravity-ide”
function Show-Menu {
Write-Host “`nSelect an action:” -ForegroundColor Yellow
Write-Host “1) Toggle to Antigravity IDE (Restore 1.x IDE launcher)”
Write-Host “2) Toggle to Antigravity 2.0 (Restore 2.0 launcher)”
Write-Host “3) Migrate settings and keymaps”
Write-Host “4) Link/Migrate extensions (with symlink/junction support)”
Write-Host “5) Exit”
Write-Host “”
}
do {
Show-Menu
$choice = Read-Host “Enter option [1-5]”

switch ($choice) {
    "1" {
        # Toggle to IDE
        if (Test-Path $appAsar) {
            try {
                Rename-Item -Path $appAsar -NewName "app.asar.bak"
                Write-Host "[SUCCESS] Disabled 2.0. Antigravity IDE will now launch." -ForegroundColor Green
            } catch {
                Write-Host "[ERROR] Failed to rename app.asar. Ensure Antigravity is closed." -ForegroundColor Red
            }
        } else {
            if (Test-Path $appAsarBak) {
                Write-Host "[INFO] Antigravity IDE is already active (app.asar is currently app.asar.bak)." -ForegroundColor Yellow
            } else {
                Write-Host "[ERROR] Could not find app.asar in $resourcesPath" -ForegroundColor Red
            }
        }
    }
    "2" {
        # Toggle to 2.0
        if (Test-Path $appAsarBak) {
            try {
                Rename-Item -Path $appAsarBak -NewName "app.asar"
                Write-Host "[SUCCESS] Enabled 2.0. Antigravity 2.0 will now launch." -ForegroundColor Green
            } catch {
                Write-Host "[ERROR] Failed to rename app.asar.bak. Ensure Antigravity is closed." -ForegroundColor Red
            }
        } else {
            if (Test-Path $appAsar) {
                Write-Host "[INFO] Antigravity 2.0 is already active (app.asar exists)." -ForegroundColor Yellow
            } else {
                Write-Host "[ERROR] Could not find app.asar.bak in $resourcesPath" -ForegroundColor Red
            }
        }
    }
    "3" {
        # Migrate Settings
        if (Test-Path $oldConfig) {
            if (-not (Test-Path $newConfig)) {
                New-Item -ItemType Directory -Path $newConfig | Out-Null
            }
            Write-Host "Copying configuration files from '$oldConfig' to '$newConfig'..." -ForegroundColor Cyan
            Copy-Item -Path "$oldConfig\*" -Destination $newConfig -Recurse -Force -ErrorAction SilentlyContinue
            Write-Host "[SUCCESS] Settings and keymaps migrated." -ForegroundColor Green
        } else {
            Write-Host "[ERROR] Source settings folder '$oldConfig' does not exist." -ForegroundColor Red
        }
    }
    "4" {
        # Link/Migrate Extensions
        if (Test-Path $oldExtensions) {
            if (-not (Test-Path $newExtensions)) {
                New-Item -ItemType Directory -Path $newExtensions | Out-Null
            }
            
            $oldExtPath = Join-Path $oldExtensions "extensions"
            $newExtPath = Join-Path $newExtensions "extensions"
            
            if (Test-Path $oldExtPath) {
                Write-Host "Creating Directory Junction for extensions to bypass path limits..." -ForegroundColor Cyan
                
                if (Test-Path $newExtPath) {
                    Write-Host "Removing existing extensions folder in target: '$newExtPath'" -ForegroundColor Yellow
                    # Check if it is a ReparsePoint (symlink/junction) before deleting
                    $item = Get-Item $newExtPath
                    if ($item.Attributes -match "ReparsePoint") {
                        [System.IO.Directory]::Delete($newExtPath)
                    } else {
                        Remove-Item -Path $newExtPath -Recurse -Force
                    }
                }
                
                # Run cmd.exe to create the Directory Junction
                cmd.exe /c mklink /J "$newExtPath" "$oldExtPath"
                
                if (Test-Path $newExtPath) {
                    Write-Host "[SUCCESS] Extensions directory junction created." -ForegroundColor Green
                } else {
                    Write-Host "[ERROR] Failed to create directory junction." -ForegroundColor Red
                }
            } else {
                Write-Host "[ERROR] Source extensions folder '$oldExtPath' not found." -ForegroundColor Red
            }
        } else {
            Write-Host "[ERROR] Source folder '$oldExtensions' does not exist." -ForegroundColor Red
        }
    }
    "5" {
        Write-Host "Exiting." -ForegroundColor Cyan
        break
    }
    default {
        Write-Host "Invalid option. Please select 1 to 5." -ForegroundColor Red
    }
}

} while ($choice -ne “5”)

If you use remote servers, you also need to move ~/.antigravity-server to ~/.antigravity-ide-server

Kindly share the prompt for creating this solution with us.

Thank you.

I basically copied the entire post by OP and pasted it to Gemini in the new Antigravity. I asked it to create a Toggler for switching between classic IDE and the new v2 interface.

Your Antigravity must be closed while switching. I did this on my work laptop, uploading is blocked so I can’t share the file. I can’t even send it to my personal email because that will get me in trouble with Security. But see my reply below. Hope it works for you.

This is pathetic to be honest if people are not saying it enough. I mean come on guys … I shouldn’t have updated its unusable

Well, for anyone who wants a quick fix that enables both 2.0 & IDE at the same time easily, here is an automated installer (that needs node in path). there are some other features/ideas too, but they might not all be working. The important part tho, the IDE install (which is silent) should work fine (as long as the download link stays unchanged).

Enjoy! (it works!! (kind of!!!))

Edit: I tried on my other PC, it did work, but it was a bit harder smhsmh. classic.
for the brave still: launch the .bat first, then look in Task Manager to see when Antigravity IDE Setup/Installer finishes (the completion bar goes from 0% to 100% directly in the UI (if it updates at all)). It might take quite some time, Defender myb slowing down the installation (not sure why, myb unsigned/unverified or smth? for the bravest, you can keep Defender off while it installs, but it’s gonna be fine either way unless you’re on a pepeCPU (like me)). Anyways, IF the UI bar doesn’t update to 100% by itself after the installer finishes/closes from the Task Manager, you can manually go to “Appdata/Local/Programs/Antigravity IDE” and you should see “Antigravity IDE.exe”. Open it, and the localhost UI should update/recognize the installation & enable access to other settings. gudjub warrior, the sjuggle ends here

Having to resort to these hacks to fix a bug that OVERWRITES your IDE with another separate product is the most shameful thing I’ve seen in years. Seriously; how can a company like Google allow this to happen, and how is it possible that they haven’t provided and official solution yet? What a shame.


@JWD64
I tried your code in antigravity – it gave me this
I can restore my all except my prev conversation.
Thanks again

i copy pasted whole post and in powershell changed the launch mode to IDE 1 but now the app is not opening at all! Whats the fix?

google should really consider fire their release team

Oddly, I am not to concerned about the new Agent conversation view, however, I do want the IDE available as well.

I can launch both 2.0 and 1.0. In the old IDE, it tries to update, even when I have 2.0 installed. I can cancel it, but it comes up from time to time while the old IDE is open.

The odd thing I am seeing: 2.0 doesn’t inherit anything I made in the old IDE. So it looks like workflows, global agent rules, project rules, are all restructured and replaced with the settings for skills.

Also, I noticed a lot less projects visible in the 2.0 interface. Hopefully Google fixes some of this.

Supposedly should have an option to have the IDE

However, I haven’t seen it in my AG2 yet. I am on that version to.

Also, should be some option to migrate from the old ide to the new one, however, that to is missing (I have the latest ide):