Skip to content

Commands

All commands are available from the command palette (Ctrl+Shift+P). Many also appear in context menus, the sidebar header, or the Source Control and terminal views.

Editor

CommandWhereWhat it does
Twinny - Edit with instruction…Right-click, Ctrl+IInline edit of the selection or current line
Twinny - Accept editCodeLens, Ctrl+Shift+EnterKeep the pending inline edit
Twinny - Reject editCodeLens, Ctrl+Shift+BackspaceDiscard the pending inline edit
Twinny - ExplainRight-clickExplain the selection in the chat
Twinny - RefactorRight-clickInline edit: improve readability without changing behaviour
Twinny - Add typesRight-clickInline edit: add type annotations
Twinny - Generate docsRight-clickInline edit: add documentation comments
Twinny - Write testsRight-clickWrite tests for the selection (or file) into a sibling test file
Twinny - Add file to contextRight-click editor or Explorer fileAttach the file to the next chat message
Twinny: Add Selection to ContextRight-click a selectionAttach the selection to the next chat message
Stop generationStatus bar spinner, Ctrl+Shift+/Cancel whatever is streaming: completion, chat, edit or review

The lightbulb (Ctrl+.) offers Fix with Twinny on errors and warnings and Edit with Twinny on a selection; both run the inline edit command.

CommandIconWhat it does
Enable twinny sidebarFocus the twinny view
Back to chat viewReturn to the chat from another tab
Code reviewerpull requestOpen the review tab
Manage twinny providersrobotOpen the Providers tab
Manage twinny templatesbookChoose which templates show as chat suggestions
Embedding optionsdatabaseOpen the workspace index tab
Open twinny conversation historyclockSearch, rename, delete conversations
Open twinny panel chatfull screenOpen the chat in an editor tab
Start a new chatplusBegin a fresh conversation
Open twinny settingsgearOpen VS Code settings filtered to twinny

Source control and terminal

CommandWhereWhat it does
Twinny - Generate commit messageSource Control title (sparkle)Write a commit message into the commit box
Twinny - Write a terminal command from a descriptionTerminal right-clickDescribe a command, confirm it, run it
Twinny - Fix the last terminal errorTerminal right-clickFix in the editor or ask in the chat

Devices

CommandWhat it does
Twinny - Share this computer’s Ollama with my other devices (P2P)Start sharing and show a pairing code; the same as Share in the Devices section

Extension

CommandWhat it does
Enable twinny / Disable twinnyTurn the extension on or off (twinny.enabled)
Twinny - Show logsOpen the Twinny output channel
Edit twinny templatesOpen the ~/.twinny/templates/ folder
Twinny - Status bar optionsThe menu shown when you click the status bar item

Command ids

For keybindings and tasks.json, the ids are twinny.<name>: twinny.edit, twinny.acceptEdit, twinny.rejectEdit, twinny.explain, twinny.refactor, twinny.addTypes, twinny.generateDocs, twinny.addTests, twinny.addFileToContext, twinny.addSelectionToContext, twinny.stopGeneration, twinny.sidebar.focus, twinny.openChat, twinny.review, twinny.manageProviders, twinny.manageTemplates, twinny.embeddings, twinny.conversationHistory, twinny.openPanelChat, twinny.newConversation, twinny.settings, twinny.generateCommitMessage, twinny.terminalCommand, twinny.fixTerminalError, twinny.shareOllama, twinny.enable, twinny.disable, twinny.showLogs, twinny.templates.