Code editor
Your Genesis site is a real codebase, and you can open it any time from the toolbar’s ⋯ → Code editor. You never have to touch code — but it’s there when you want it.
The layout
Section titled “The layout”Opening the editor splits the workspace: live preview on top, code below, with a drag handle between them to adjust the split. The editor’s own buttons switch it to Full screen (Esc to exit) or close it.
- Explorer on the left — browse and open any file in your project. Filter files by name, and use the buttons for New File, New Folder, Collapse All and Refresh. Right-click a file for Rename, Duplicate, Copy Path, Copy Name and Delete.
- Tabs across the top — every file you’ve opened. Right-click a tab for Close, Close Others, Close to the Right, Close All, Copy Path and Reveal in Tree.
- Editor in the center — full syntax highlighting, autocomplete, error underlines, find & replace. It’s the same editor engine as VS Code, so the shortcuts you know work.
- Unsaved files show a dot until you save.
Save a file and the preview updates with your change.
Shortcuts
Section titled “Shortcuts”| Shortcut | What it does |
|---|---|
| ⌘S / Ctrl+S | Save the file |
| ⌘P / Ctrl+P | Quick open — go to a file by name |
| ⌘⇧P / Ctrl+Shift+P | Editor commands |
| ⌘W / Ctrl+W | Close the tab |
| Shift+Alt+F | Format the file |
| F2 | Rename the selected file |
| Del | Delete the selected file |
Saving doesn’t reformat your code; run Shift+Alt+F when you want it formatted.
Jumping to an element’s code
Section titled “Jumping to an element’s code”The fastest way in: select an element in the preview and click Open in code editor in the element’s panel header. The editor opens right at that element’s source.
When the code editor is useful
Section titled “When the code editor is useful”- Inspecting what the AI actually built.
- Surgical text/value tweaks when you know exactly what to change.
- Pasting in something specific — an exact embed snippet, precise CSS.