Keyboard Shortcuts
Reference for all keyboard shortcuts in Tabnine CLI.
Key bindings can be customized via ~/.tabnine/agent/keybindings.json. See Custom Key Bindings at the bottom of this page. For slash commands, type / on an empty prompt.
Basic Controls
Confirm selection
Enter
Dismiss dialog
Esc, Ctrl+[
Cancel request / clear input
Ctrl+C
Exit (empty input buffer)
Ctrl+D
Suspend to background
Ctrl+Z (double-press; not supported on Windows)
Text Input
Submit prompt
Enter
New line without submit
Ctrl+Enter, Cmd+Enter, Alt+Enter, Shift+Enter, Ctrl+J
Open external editor
Ctrl+X
Paste from clipboard
Ctrl+V, Cmd+V, Alt+V
Cursor Movement
Start of line
Ctrl+A, Home
End of line
Ctrl+E, End
Move up
Up
Move down
Down
Move left
Left
Move right
Right, Ctrl+F
Word left
Ctrl+Left, Alt+Left, Alt+B
Word right
Ctrl+Right, Alt+Right, Alt+F
Editing
Delete to end of line
Ctrl+K
Delete to start of line
Ctrl+U
Delete previous word
Ctrl+Backspace, Alt+Backspace, Ctrl+W
Delete next word
Ctrl+Delete, Alt+Delete, Alt+D
Delete character left
Backspace, Ctrl+H
Delete character right
Delete, Ctrl+D
Undo
Cmd+Z, Alt+Z
Redo
Ctrl+Shift+Z, Cmd+Shift+Z, Alt+Shift+Z
Scrolling
Scroll up
Shift+Up
Scroll down
Shift+Down
Scroll to top
Ctrl+Home, Shift+Home
Scroll to bottom
Ctrl+End, Shift+End
Page up
Page Up
Page down
Page Down
History & Search
Previous history
Ctrl+P
Next history
Ctrl+N
Reverse search
Ctrl+R
Submit search result
Enter
Accept search suggestion
Tab
Up/Down arrows also navigate input history when the cursor is on the first or last line.
Navigation
Move up in lists
Up
Move down in lists
Down
Move up in dialogs
Up, K
Move down in dialogs
Down, J
Next dialog item
Tab
Previous dialog item
Shift+Tab
Auto-Completion
Accept suggestion
Tab, Enter
Previous option
Up, Ctrl+P
Next option
Down, Ctrl+N
Expand suggestion
Right
Collapse suggestion
Left
App Controls
Clear screen
Ctrl+L
Toggle Markdown rendering
Alt+M
Toggle error details
F12
Toggle copy mode
Ctrl+S
Toggle TODO list
Ctrl+T
Toggle IDE context
Ctrl+G
Toggle YOLO mode
Ctrl+Y
Cycle approval mode
Shift+Tab
Expand/collapse blocks
Ctrl+O
Focus shell input
Tab
Unfocus shell input
Shift+Tab
Toggle background shell
Ctrl+B
Shell Mode
Toggle shell mode
! (on empty input)
Exit shell mode
Esc
Special Keys
Show shortcuts panel
? (on empty input)
Select file or folder
@
Clear and rewind
Esc Esc (double-press)
Line continuation
` at end of line + Enter
Vim Mode
When Vim mode is enabled (via /vim command or general.vimMode setting):
NORMAL Mode
Navigate:
h,j,k,l,Left,Right,Up,DownWord jumps:
w,W,b,B,e,EFind character:
f{char},F{char},t{char},T{char},;,,Line start/end:
0,$,^Go to line:
gg,G,{count}GEdit:
x,X,~,r{char}Delete:
dd,D,d{motion}(dw, db, de, dh, dj, dk, dl, d0, d$, d^, dgg, dG)Change:
cc,C,c{motion}(cw, cb, ce, ch, cj, ck, cl, c0, c$, c^, cgg, cG)Insert:
i,a,o,O,I,AYank:
yy,yw,yW,ye,yE,y$,YPaste:
p,PUndo:
uRepeat:
.Count prefix:
{count}before any command
INSERT Mode
Return to NORMAL:
Esc,Ctrl+[All standard editing keys pass through
Custom Key Bindings
Create ~/.tabnine/agent/keybindings.json to add or remove bindings:
Prefix a command with
-to remove a bindingKey format: modifiers joined with
+(e.g.,ctrl+shift+a,alt+enter)Available modifiers:
ctrl,shift,alt(oroption/opt),cmd(ormeta)
Quick tips:
Type
?on an empty prompt to show the shortcuts panelIn dialogs, type numbers
1–9to jump to optionsShell commands run with
TABNINE_CLI=1environment variable
Last updated
Was this helpful?
