Enabling the Code IDE for your workspace
How to turn on the Code IDE: the workspace owner's master switch, the per-site choice of editor, and how the two settings work together.
Two levels gate the Code IDE: a workspace-level master toggle (owner-only) and a per-site editor preference (anyone with design.edit). Both default off — the IDE is opt-in so existing sites don’t change behaviour the moment you upgrade.
Workspace master toggle
- Go to Settings → Code IDE. Owner-only — other members are redirected to their account page.
- Flip the switch on. The activity log records who flipped it and when, so you can audit later.
What changes when it’s on:
- Each Web Design site shows a Code editor button at the top of the editor (for users with design.edit).
- The
/projects/[id]/code/[siteId]route is reachable — without the master toggle, that URL bounces to the legacy workbench.
Flipping it off later doesn’t delete IDE-built content. Every site falls back to the legacy workbench regardless of its per-site preference; the IDE’s files stay on disk and re-appear if you turn the master toggle back on.
Per-site editor surface
Each site stores its own preference (LEGACY_WORKBENCH or CODE_IDE). Once the master toggle is on, you control this per-site via the switcher button on either surface:
- From the workbench: the Code editor button at the top. This move is permanent for a site whose pages are not yet files, and asks you to confirm first.
- From the Code IDE topbar: the Classic button is unavailable once a site’s pages are files, because the workbench cannot edit them.
The switch updates the preference first, then navigates, so a saved bookmark to either address always lands on the editor the site is actually set to use.
What happens to existing sites?
Every site starts on LEGACY_WORKBENCH (the default). Flipping the master toggle doesn’t change any site’s preference — it just makes the choice available. You have to click the per-site switcher to move a site over. That move is permanent once the site’s pages have become files.
Step by step: Edit a website's code directly
Switch on the Code editor, move a site into it, and let the agent make changes you approve. Moving a site is permanent.
- 1Switch it on
Open Settings and choose Code IDE. Turn the switch on. Only the workspace owner can.
You should see: "Saved."
- 2Decide before you move a site
Open a site in Web Design and press Code editor at the top. A message asks you to confirm, because this is permanent: the site's pages move into files, and the workbench can no longer edit them. Practise on a copy or a test site first. To start a new code project instead, choose New app when creating a site.
You should see: A file tree on the left, a code editor in the middle and the site chat on the right.
- 3Edit a file
Open a page or a stylesheet from the file tree and edit it. Standard editor shortcuts work, such as find and replace. Press ▶ Preview to see the site in a new tab.
You should see: Your edit is saved as a draft. The live site does not change.
- 4Ask the agent
Describe a change in Site chat, for example "make every button use rounded corners". You can paste a screenshot to show what you mean. The agent reads and searches files by itself, but asks before it writes, changes or deletes one, and shows the difference first.
You should see: A proposed change waiting for your approval.
- 5Approve, and undo if needed
Approve the changes you want; Approve all accepts every change in that answer. Before each approved change the editor saves a checkpoint. Press ↻ History to open Checkpoints and Restore an earlier state.
You should see: The files show the change, or are back as they were.
- 6Publish
Press Publish at the top of the Code editor. It opens the same publish window as any other site.
You should see: The live site shows the change.
If something goes wrong
- There is no Code editor button on the site.
- The Code IDE is switched off for the workspace, or your role cannot edit the design. Ask the workspace owner.
- You cannot switch a site back to the workbench.
- This is by design. Once a site's pages are files, only the Code editor can change them. Use Checkpoints to undo changes.
- "You don't have permission to publish"
- Your project role can edit but not publish. Ask a project owner to publish.