Inline AI
Code Actions
Code Actions are contextual AI commands that appear when you right-click selected code in the editor or output in the terminal. They let you trigger focused AI tasks without opening the chat panel.
Editor code actions
Select any code in the editor, right-click, and look for the UltraCoder submenu:
| Action | What it does |
|---|---|
| Explain Code | Opens a new Ask-mode task explaining the selected code |
| Fix Code | Opens a new Code-mode task to fix issues in the selection |
| Improve Code | Opens a new Code-mode task to improve readability, performance, or correctness |
| Add to Context | Attaches the selected snippet to your next chat message |
✦ Tip:Add to Context is especially useful for multi-file tasks: select the relevant function in each file and add them all before sending your message.
Terminal actions
Right-click inside the integrated terminal to access AI actions for terminal output:
| Action | What it does |
|---|---|
| Terminal: Add to Context | Attaches the visible terminal output to your next chat message |
| Terminal: Fix Command | Opens a new Debug-mode task to fix the failing command or error |
| Terminal: Explain Command | Opens a new Ask-mode task to explain the terminal output |
Generate commit message
In the Source Control panel (Git), UltraCoder adds a Generate Commit Message button. Click it to have UltraCoder write a commit message based on your staged changes.
Code review commands
From the Command Palette (⌘⇧P) or the Source Control panel:
- Review Working Changes — review all uncommitted changes
- Review Current Branch — review all commits on the current branch vs main
- Review Commit... — review a specific commit by hash
- Review Against Ref... — review changes against any git ref
Disabling code actions
To hide the UltraCoder right-click menu entries, set ultra-coder.enableCodeActions to false in VS Code settings.