VS Code Commands
Complete list of all Misar Code commands available in the VS Code Command Palette and context menus.
Overview
All Misar Code commands are accessible via the Command Palette (Cmd+Shift+P on macOS, Ctrl+Shift+P on Windows/Linux). Type Misar to filter the list.
Chat Commands
| Command ID | Title | Description |
|------------|-------|-------------|
| misarCode.open | Misar Code: Open | Open the Misar Code sidebar panel |
| misarCode.quickChat | Misar Code: Quick Chat | Open a floating quick-chat input box |
| misarCode.stop | Misar Code: Stop | Abort the currently running agent turn |
| misarCode.clearHistory | Misar Code: Clear History | Clear the conversation history for the current session |
| misarCode.newConversation | Misar Code: New Conversation | Start a fresh conversation, preserving session memory |
| misarCode.toggleFocus | Misar Code: Toggle Focus | Move focus between the editor and the Misar Code panel |
Diff Commands
| Command ID | Title | Description |
|------------|-------|-------------|
| misarCode.acceptDiff | Misar Code: Accept Change | Accept the currently previewed file change |
| misarCode.rejectDiff | Misar Code: Reject Change | Reject the currently previewed file change and restore the original |
| misarcoder.acceptInlineEdit | Misar Code: Accept Inline Edit | Accept the active inline edit suggestion |
| misarcoder.rejectInlineEdit | Misar Code: Reject Inline Edit | Reject the active inline edit suggestion |
Editor Context Commands
These commands appear in the right-click context menu when code is selected in the editor.
| Command ID | Title | Description |
|------------|-------|-------------|
| misarCode.explainCode | Explain This | Get a plain-language explanation of the selected code |
| misarCode.fixCode | Fix This | Ask the agent to identify and fix bugs in the selection |
| misarCode.refactorCode | Refactor This | Improve structure and patterns while preserving behaviour |
| misarCode.generateTests | Generate Tests | Create unit tests for the selected function or class |
| misarCode.fixWithAI | Fix With AI | Inline quick-fix triggered from a diagnostic (error/warning) |
Symbol Commands
These commands operate on the symbol under the cursor (function, class, or variable name).
| Command ID | Title | Description |
|------------|-------|-------------|
| misarCode.explainSymbol | Explain Symbol | Explain the symbol under the cursor including its usages |
| misarCode.refactorSymbol | Refactor Symbol | Refactor the symbol and all its references across the workspace |
| misarCode.testSymbol | Test Symbol | Generate tests specifically for the symbol under the cursor |
Terminal Commands
| Command ID | Title | Description |
|------------|-------|-------------|
| misarCode.captureTerminal | Send Terminal Output to AI | Capture the last terminal output and send it to the agent as context |
Bind any command to a custom keyboard shortcut via File → Preferences → Keyboard Shortcuts, then search for the command ID.