Code Editor
The code editor is the in-workspace C# editing surface. Wherever the admin UI asks you to write code, it renders the same editor — a Monaco-based component with completion, hover documentation, formatting, and inline compile errors wired to the workspace's compiler.
You'll meet the same editor in every code-authoring surface:
- Custom endpoints
- Code indexes
- AI tools
- Scheduled tasks
- The admin Shell, NLP pattern editors, skill and agent editors, and custom AI provider settings.
Editing features
| Feature | Behaviour |
|---|---|
| Context-aware completion | Suggestions reflect the execution scope of what you're editing — an endpoint editor completes endpoint members, an index editor completes index members, and so on. Inline (ghost-text) suggestions are shown as you type. |
| Hover documentation | Hover a symbol to see its signature and XML documentation. |
| Formatting | Reformats through the workspace's C# formatter (see keyboard shortcuts below). |
| Inline compile errors | As you type, the workspace compiles the code in the background and underlines errors in place; hover an underline for the message. The previously-saved version stays live until a new one compiles cleanly. |
| Bracket-pair colourisation | Matching brackets share a colour, so nesting is easy to follow. |
| Word wrap | Off by default; toggle per editor (see shortcuts). |
| Read-only mode | Some surfaces (history, comparisons) render the editor read-only — you can read and copy, but not edit. |
Keyboard shortcuts
| Shortcut | Action |
|---|---|
Ctrl + Space |
Trigger completion suggestions |
Shift + Alt + F |
Format Document |
Ctrl + K Ctrl + F |
Format Selection |
Alt + Z |
Toggle word wrap (also on the right-click menu) |
Cross-links
- Debugging endpoints — tightening the edit → compile → run loop.