Skip to content

Keyboard shortcuts

Shortcut (Windows / Linux)macOSActionWhen
Alt+\Alt+\Request a code completionEditing a file
TabTabAccept the shown completionA suggestion is showing
EscEscDismiss the shown completionA suggestion is showing
Ctrl+ICmd+IInline edit: describe a change to the selectionEditing a file
Ctrl+Shift+EnterCmd+Shift+EnterAccept the pending inline editAn edit is waiting
Ctrl+Shift+BackspaceCmd+Shift+BackspaceReject the pending inline editAn edit is waiting
Ctrl+Shift+/Cmd+Shift+/Stop generation (completion, chat, edit or review)twinny is generating
Ctrl+.Cmd+.Lightbulb: Fix with Twinny, Edit with TwinnyOn a diagnostic or selection

Tab, Esc and Ctrl+. are VS Code’s own bindings for inline suggestions and code actions.

Changing them

Open Keyboard Shortcuts (Ctrl+K Ctrl+S) and search for twinny. Or add to keybindings.json:

[
{ "key": "ctrl+alt+i", "command": "twinny.edit", "when": "editorTextFocus && !editorReadonly" },
{ "key": "ctrl+alt+enter", "command": "twinny.acceptEdit", "when": "twinnyInlineEditPending && editorTextFocus" }
]

Useful when contexts: twinnyInlineEditPending (an edit is waiting) and twinnyGeneratingText (something is streaming).

Conflicts

The completion shortcut is on VS Code’s built-in Trigger Inline Suggestion command (editor.action.inlineSuggest.trigger), which GitHub Copilot also binds to Alt+\. If both are installed, rebind one. Ctrl+I is bound by some other assistants too; twinny’s binding applies only in a writable text editor.

Suggested extras

Commands without a default binding that are worth one if you use them often:

Command idSuggestion
twinny.addTestsCtrl+Alt+T
twinny.explainCtrl+Alt+E
twinny.terminalCommand`Ctrl+Alt+“
twinny.fixTerminalErrorCtrl+Alt+F
twinny.newConversationCtrl+Alt+N