Using Autocomplete
Autocomplete offers what you are most likely typing, from a short list, and formats the line when you take it.
It opens on its own while you type, and what it offers depends on where you are. For example, at the beginning of a line, typing I or E offers INT or EXT.
The highlighted option is previewed at your cursor as dimmed gray text, so you can see exactly what accepting it will write.
- Tab accepts the highlighted option. Clicking or tapping the gray preview does the same.
- The arrow keys move through the options, and the preview follows. After moving, Enter also accepts.
- Escape closes the list.
When only one option is left, the list doesn't open at all: the preview already shows it, so Tab or a tap on the preview is all you need. (If the preview can't show it, because your cursor is mid-word or the option isn't a straight continuation of what you typed, the list still opens.) With only the preview showing, an arrow key dismisses it instead of moving.
On a phone, the options appear as a bar above your cursor instead of a dropdown, so the keyboard never covers them.
After you pick an option, autocomplete formats the current line and closes.
AI autocomplete
This autocomplete knows your script and needs no AI. A separate, experimental feature can predict the rest of a line with an AI model as you type. It is off until you turn it on in Settings → Labs → AI autocomplete while typing. See AI Suggestions.