How to use Inline Chat
To start an Inline Chat, select a code block to modify it or place your cursor to generate new code, then use the keyboard shortcut (Press⌘ ⇧ I on macOS or Ctrl Shift I on Windows/Linux) to open the chat window.
Scenarios
Scenario 1: Refactoring or modifying existing code This is perfect for improving, commenting, or changing a block of code.- Select the code you want to modify.
- Press
⌘ ⇧ I(orCtrl Shift I) to open Inline Chat. - Type your request, for example:
- “Refactor this to be more efficient.”
- “Add JSDoc comments to this function.”
- “Convert this to an async/await function.”
- Qoder will analyze your request and generate the changes directly in a diff view for your approval.
- Place your cursor on an empty line where the new code should go.
- Press
⌘ ⇧ I(orCtrl Shift I) to open Inline Chat. - Type your request, for example:
- “Write a function that fetches data from ‘api/users’.”
- “Generate a regular expression to validate an email address.”
- Qoder will generate the new code snippet in place.
Keyboard shortcuts
| Action | macOS | Windows/Linux |
|---|---|---|
| Open an inline chat | ⌘ ⇧ I | Ctrl Shift I |
| Accept a single change | ⌘ Y | Ctrl Y |
| Reject a single change | ⌘ N | Ctrl N |
| Accept all suggested changes | ⌘ ⏎ | Ctrl ⏎ |
| Reject all suggested changes | ⌘ ⌫ | Ctrl Backspace |