Edit your app’s code
The Code tab shows every file in your app. Editors can change, add, rename and delete files.
You never have to touch code, but you can. Choose Code in the top bar (on phones, the Code tab).
Find and open files
The list on the left shows your app's files and folders. Click a file to open it. What changed shows the files each version changed.
Change a file
- Edit the file.
- Press Save (Ctrl+S). Your save becomes a new version, like an AI change, so you can undo it from Version history.
New, rename and delete
Use the ⋯ button on a file or folder (or right-click) for New file here, New folder here, Rename and Delete. A few core files your app needs can't be renamed or deleted. Empty folders only show until you add a file to them.
Renaming a table's file renames the table, and its records move with it. If pages still use the old name, the chat offers to let the AI fix them.
When editing is paused
- While the AI is working, the code is read-only.
- If a file changed since you opened it, choose Load the latest version or Keep my version.
- Viewers can look but not change files.