# Site code

URL: https://docs.xodia.ai/editing/site-code
Last updated: 2026-11-18

Site code shows the files behind your site in a code editor, with the file tree beside it. It's there for the change that is quicker to type than to click. Changes you make on the canvas are written here too.

_Picture: Xodia's Site code: the site's file tree with src/pages/Home.tsx open in the editor, the heading's line highlighted with its Tailwind classes, and Save._

## Open Site code

Choose the Site code button in the top bar, next to Preview. Choose it again to go back to the canvas. On a narrow window it's in the Xodia menu, under Site code.

Other places open a file there for you, such as Edit component in the Components panel, From your code in Motion, and Open CONVERTED.md on a site made with Make it fully editable.

## Change a file

1. Pick a file

   Choose a file in Files on the left. Its path shows above the editor.
2. Type your change

   While you type, the header says Unsaved.
3. Save it

   Choose Save, or press `⌘` `S` on a Mac or `Ctrl` `S` on Windows. The header says Saved and the preview reloads with your change. From there it is kept like every other change.

## When a file changed while you had it open

If your AI, a teammate or another tab changed the same file after you opened it, a note says so. Copy my version copies what you typed, and Reload file opens the file as it is now, so you can add your change again.

## Files you can't change here

- **Locked** shows on a locked page's own file, with a banner and Save off. See [Pages you can edit, and locked pages](https://docs.xodia.ai/billing/locked-pages).
- **Managed by Xodia** shows on a few files Xodia keeps for the visual editor. Xodia changes those itself.
- **View only** shows on another version you can't edit on your plan, and **Read only** when your seat can't make changes.

_Picture: Xodia's Site code on src/pages/Visit.tsx, a page locked on the Free plan: the Locked chip beside the file, Save switched off, and the line This page is locked on your plan. You can look at it and publish it. Upgrade to edit it, with Upgrade._

### Good to know

- Undo on the canvas doesn't cover changes in Site code. To go back, use a restore point. See [Restore points and undo](https://docs.xodia.ai/get-started/restore-points).
- Your AI works on the same files. Ask it for bigger changes. See [What your AI can and can't change](https://docs.xodia.ai/ai/what-your-ai-can-change).

> **Note:** Site code used to be called the Code tab. See [Names that changed](https://docs.xodia.ai/reference/names).
