The day I install a new editor, I want to find out how far ahead its completions will run. In Antigravity, though, Tab turned out to be less a single "completion" feature than a bundle of four with different jobs. Before I realized that, I kept finding code I hadn't typed and bouncing around the settings screen trying to work out why.
What I'd say up front is this: give Tab trust one feature at a time. Switching everything on at once cost me more review time than adding features gradually and getting a feel for each.
Everything below stays within what Antigravity's official Tab documentation says. Where the docs are silent, I've left the claim out.
The four features
According to the documentation, Tab breaks down like this:
- Autocomplete: a completion feature you can toggle in settings (the docs don't describe its behavior in detail)
- Supercomplete: code suggestions near the cursor, sometimes file-wide — the examples are renaming a variable or updating separate function definitions at the same time
- Tab-to-Jump: points to the next logical place to edit, shown with a "Tab to jump" icon; press Tab to move there
- Tab-to-Import: spots a class or function that is used but not imported, completes the word and adds the import at the top of the file
All of them are accepted with Tab, and Tab is the only shortcut the docs mention. I couldn't find an official "show next suggestion" key or an "accept word by word" key, so I don't build workflows around those.
Settings you can touch
| Setting | What it does |
|---|---|
| Per-feature toggles | Turn Autocomplete / Tab-to-Jump / Supercomplete / Tab-to-Import on or off individually |
| Tab speed | Slow (waits for more context), Default, or Fast (rapid-fire suggestions) |
| Highlight inserted text | Highlights text inserted via Tab |
| Clipboard context | Uses clipboard contents to improve completion accuracy |
| Allow gitignored files | Allows suggestions and jumping in .gitignored files (only when Git is installed; excluded by default) |
Millisecond delay fields, per-language style rules and a configurable number of suggestions don't appear on that page. An earlier version of this article listed some of those; I've removed them because I couldn't confirm them.
The order I turn things on
I decide by how large the side effect can be.
- Tab-to-Import first. A mistake costs one extra import line — easy to spot, easy to undo.
- Tab-to-Jump next. The cursor moves; the code doesn't change.
- Autocomplete when I already know what I'm writing, so a wrong suggestion is obvious right away.
- Supercomplete last. Some of its suggestions touch the whole file, so I only accept after reading the diff.
I leave Tab speed at Default and move to Slow if suggestions come faster than I can read. Highlight inserted text is worth enabling: it lets you see afterwards which lines arrived via Tab.
What I check before accepting a Supercomplete
A Supercomplete suggestion can rewrite distant parts of a file at once. Pressing Tab without reading what will change can drag in a function you never meant to touch. Before accepting, I check three things:
- the change stays inside the function I'm working on
- a rename doesn't spill onto a different variable with the same name
- type checking and tests still pass afterwards
The last point lives outside the editor, and no completion feature replaces it. Suggestions come from the tool; accepting them stays my call. I'd keep that line even if completions got much better.
Clipboard context and gitignored files
With Clipboard context on, what you copy becomes material for completions. If you've just copied a token fragment or password, that matters. The docs say clipboard contents are used for accuracy but don't go into how they're handled, so I switch the option off while working with secrets.
Allow gitignored files is off by default, which keeps suggestions away from build output and generated files. If a local config file you listed in .gitignore never gets suggestions, this setting may be why.
When nothing shows up
First confirm the relevant feature is on. If that doesn't fix it, I've put the diagnostic steps in a separate guide: Fixing tab completion that doesn't work.
One next step
Turn on only Tab-to-Import and write a day's worth of code. See whether your import lines tidy themselves, then add the next feature. That's how I started, and I'd rather keep it that way. The official docs may change, so I check back now and then for new settings.