Basics
Cursor Tab: How Autocomplete Predicts Your Next Edit
Cursor Tab is Cursor's AI-powered autocomplete. It suggests code as you type, drawing on your recent edits, the surrounding code and linter errors. Suggestions appear as grayed-out text ahead of your cursor. Press Tab to accept, Esc to reject, and Tab again to jump to the next predicted editing location.
On this page
What is Cursor Tab and what does it read?
Tab is Cursor's AI-powered autocomplete. It suggests code as you type, and the suggestion arrives as grayed-out text ahead of your cursor rather than in a dropdown you have to open. What separates it from a snippet engine is the input it reads. Three signals feed each prediction:
- Your recent edits
- What you just changed, so the next suggestion follows the direction of the work.
- Surrounding code
- The code around your cursor in the current file.
- Linter errors
- Existing errors in the file, which Tab can suggest fixing.
That last signal is the one people miss. Tab is not only completing the line you are on; it is reading the state your file is currently in.
How do I accept or reject a Tab suggestion?
Three keystrokes cover the whole interaction. You can take the full suggestion, walk into it one word at a time, or dismiss it and carry on typing. The table below lists each action and the key that performs it.
- Action
- Accept the full suggestion
- Key
Tab
- Action
- Reject
- Key
Esc, or keep typing
- Action
- Accept word-by-word (Mac)
- Key
Cmd+Right Arrow
- Action
- Accept word-by-word (Windows/Linux)
- Key
Ctrl+Right Arrow
| Action | Key |
|---|---|
| Accept the full suggestion | Tab |
| Reject | Esc, or keep typing |
| Accept word-by-word (Mac) | Cmd + Right Arrow |
| Accept word-by-word (Windows/Linux) | Ctrl + Right Arrow |
Suggestions render as grayed-out text ahead of your cursor.
Word-by-word acceptance is the escape hatch when a suggestion opens correctly and then drifts. Take the first few words, then keep typing to reject the rest.
Can Tab edit multiple lines at once?
Yes. A single Tab suggestion is not limited to finishing the line under your cursor. Cursor documents three shapes it can take, and they get progressively larger:
- Modify multiple lines in one accepted suggestion.
- Add missing import statements that your new code needs.
- Suggest coordinated edits across related code.
The import case is the everyday one. Type a call to something you have not imported yet, and the missing import is part of what Tab offers.
What are jump-in-file and cross-file suggestions?
Tab predicts where you will edit next, not only what you will type next. Once you have accepted a suggestion, the Tab key changes meaning: press it again and Cursor moves you to the next editing location. The two forms differ in how far the jump reaches.
- Jump-in-file
- Accept a suggestion, press
Tabagain, and Tab predicts your next editing location in the file and jumps there. It saves you from scrolling or navigating by hand. - Cross-file
- When a change in one file needs an update in another, Tab predicts that edit too. A portal window appears at the bottom of the editor when a jump to another file is available.
The portal window is the signal that Tab has found work in a different file. If you never look at the bottom of the editor, you never see the cross-file jump offered, and the edit stays half-finished in one file.
How do I turn Tab off or change its shortcut?
Tab has a status indicator in the bottom-right corner of Cursor, and clicking it is how you control the feature. It gives you three levels of off, from a timed pause to a permanent exclusion for particular file types.
- Snooze: disable Tab temporarily for a duration you choose.
- Disable globally: turn Tab off for all files.
- Disable for specific extensions: turn Tab off for certain file types, such as markdown or JSON.
The same settings are available under Cursor Settings → Tab. If the Tab key itself conflicts with something in your editor muscle memory, remap it: search for Accept Cursor Tab Suggestions in Keyboard Shortcuts settings and bind it to whatever you prefer.
Frequently asked questions
Does Cursor Tab suggest edits in other files?
Yes. Tab predicts cross-file edits when a change in one file needs an update in another. When a jump to another file is available, a portal window appears at the bottom of the editor.
How do I accept only part of a Tab suggestion?
Accept it word-by-word: press Cmd + Right Arrow on Mac, or Ctrl + Right Arrow on Windows and Linux. Keep typing to reject whatever is left.
Can I turn Tab off for markdown or JSON files only?
Yes. Click the Tab status indicator in the bottom-right corner of Cursor and choose to disable Tab for specific extensions. You can also snooze it for a set duration or disable it globally.
Sources & last verified
Cursor ships frequently. Facts verified against primary sources on July 9, 2026.