Open the terminal
Ctrl+Space, or View → Command Terminal, opens a separate window. Typing / lists the available commands.
| Operation | Key or command |
|---|---|
| Select a suggestion / complete it | ↑ ↓ / Tab |
| Run it / add a line break | Enter / Shift+Enter |
| Close the suggestions / the window | Esc |
| Save | /save |
| Search in the document | /find |
| Export PDF | /exportpdf |
| Clear the log | /clear |
If your input method editor (IME) intercepts Ctrl+Space, assign another shortcut under Settings → Shortcuts.
Set up an AI connection
Before using AI chat, configure a connection to a service or local server that supports the OpenAI-compatible Chat Completions format.
- Open Settings → External Tools → AI Chat and add a connection profile.
- Enter the endpoint, the model name and, where required, the API key given by the service.
- Use Fetch Models to confirm the connection and list the available models.
- Choose Use this profile and save the settings.
- In the terminal, type
/ai summarise the main points of this documentand send it.
The endpoint has to be HTTPS. HTTP is allowed only for a loopback address on the same PC. The terms and pricing of an AI service are set by that service.
The document you currently have open is attached automatically to every request. Your message, the referenced files, the conversation history and the instructions in the profile are sent as well. Check the current tab and the connection before you send.
Ask about specific documents
@ attaches further files. To get suggestions for them, open a folder in the file explorer first.
/ai @docs/spec.md summarise the differences between the spec and this document@notes.md refers to a file in the open folder, and @/notes.md refers to an open tab. Put paths containing spaces in quotes, as in @"my notes.md". Each message can reference up to five text files, with a maximum size of 2 MB per file.
Bring a reply into the document
| Command | What it does |
|---|---|
/ai | Shows the reply in the terminal |
/ai-file | Saves the reply as a new .md file and opens it |
/ai-edit | Replaces the selected text in the editor with the reply. If nothing is selected, it replaces the entire document referenced with @ |
/ai-edit does not save the file automatically. Review the replacement before saving; press Ctrl+Z to undo it. If you switch tabs or edit the selected text while waiting for a reply, the reply may open in a new tab instead of replacing the original text.
To stop a request in progress, choose Cancel in the log. Only one AI request can run at a time.
Switch conversations and models
| Command | What it is for |
|---|---|
/ai-new | Starts a new conversation. Previously saved sessions are kept |
/ai-resume | Resumes a saved conversation |
/ai-search | Searches conversation names and text, and resumes one |
/ai-change-model | Switches to another connection profile |
/ai-status | Shows the connection, the model and the size of the context in use |
Input without a leading / is not sent by default. Turn on Send input without / to AI chat only if you want that. AI is also unavailable while the license does not allow editing.