Skip to content

Instantly share code, notes, and snippets.

@chongshenng
Last active February 6, 2026 12:40
Show Gist options
  • Select an option

  • Save chongshenng/822ee443e19c6d04db22893703a564c9 to your computer and use it in GitHub Desktop.

Select an option

Save chongshenng/822ee443e19c6d04db22893703a564c9 to your computer and use it in GitHub Desktop.
Allow Key-Repeating with Google Antigravity

TL;DR

# For macOS, run the following in the terminal
defaults write com.google.antigravity ApplePressAndHoldEnabled -bool false

Why?

I recently started to use Google Antigravity, moving away from VSCode. I'm also a heavy VIM user and the VIM extensions for VSCode-based IDEs has made dev life pretty sweet. But I also had some VIM defaults like key repeats to make navigation faster - actions like holding down j (to go down to the next line) or k (to go up). Gravity wasn't honoring my configs.

It turns out that macOS key-repeating is controlled per app bundle ID. So I had to do the same for Antigravity (see above).

I followed these steps:

# Get Antigravity's bundle identifier
osascript -e 'id of app "Antigravity"'
# This returns `com.google.antigravity`

# Disable press and hold for that bundle
$ defaults write com.google.antigravity ApplePressAndHoldEnabled -bool false

Reference

  • TIL by jbranchaud "Allow Key-Repeating with Cursor" (link)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment