Site code
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.
On this page
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 codeLink to this section
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 fileLink to this section
Pick a file
Choose a file in Files on the left. Its path shows above the editor.
Type your change
While you type, the header says Unsaved.
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 openLink to this section
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 hereLink to this section
- Locked shows on a locked page's own file, with a banner and Save off. See Pages you can edit, and 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.
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 knowLink to this section
- Undo on the canvas doesn't cover changes in Site code. To go back, use a restore point. See Restore points and undo.
- Your AI works on the same files. Ask it for bigger changes. See What your AI can and can't change.