RetronAIRetronAI

Project studio

Explore and edit code

Browse source files, compare drafts, and update your preview.

On this pageFind your filesEdit and reviewKeep drafts safeRestore a draft backupAsk AI about codeWalkthrough: make a focused source editRead the draft diffCustomize the editor for readingRestore work without overwriting the wrong versionWhen to use chat instead

Find your files

Open Code after your project has a source snapshot. Use the file explorer, file search, and in-file search to locate the relevant code. Open several files in tabs and use editor settings to adjust the reading experience.

Binary files and text files larger than 1 MB are offered as downloads instead of text previews. Download availability can depend on your plan.

The code editor combines a source explorer, file tabs, code tools, and source download.
The code editor combines a source explorer, file tabs, code tools, and source download.

The code editor combines a source explorer, file tabs, code tools, and source download.

Edit and review

Make changes in supported editable files. Draft changes shows the difference between the saved version and your local draft: additions are green and removals are red.

Choose Save & update preview, review the files to save, and confirm. This saves your code changes and starts a new preview build. Your previous preview remains available while the update runs. Resolve validation issues shown by the editor before retrying.

Keep drafts safe

Unsaved edits have not been applied to your project. Download a draft backup before closing the tab if you need to preserve work. Discarding one file resets that file without discarding the other drafts.

If another build creates a newer version, saving may pause. Download your draft before discarding stale changes and loading the new source.

Restore a draft backup

Choose Restore draft and select the JSON backup you previously downloaded. The restore flow accepts one JSON file up to 16 MiB and processes it in your browser. Review the result before replacing your current draft; download the current draft first if you need to keep it. Restoring a draft is separate from saving it and building the preview.

Ask AI about code

Use Reference code in chat to prepare a chat draft with context. It does not send a message automatically. Review the draft and explain the change you want before sending.

See versions and rollback for restoring a saved project version.

Walkthrough: make a focused source edit

  1. Open Code and locate the file through the explorer or search.
  2. Read the surrounding code before editing. Confirm that you are in the component used by the screen you want to change.
  3. Make a small, related set of edits. Keep other open files unchanged unless the change requires them.
  4. Open Draft changes and compare the saved version with your draft.
  5. Check that the diff contains only the intended changes, including imports and formatting.
  6. Choose Save & update preview, review the affected files, and confirm.
  7. After the build finishes, open Preview and test the affected screen and related behavior.

A change to a shared component can affect several routes. For example, changing a shared button's styles may change every screen that uses it. Inspect another instance before publishing.

Read the draft diff

Green lines are additions and red lines are removals. A replacement often appears as one removed line and one added line. Look at the context around the change: a correct label edit can still break a file if punctuation or component syntax was removed accidentally.

If you changed the wrong file, discard that file's draft. If you want to keep an experiment before resetting it, download the draft backup first. A backup of local drafts is different from downloading the saved project source.

Customize the editor for reading

Editor settings include the syntax theme, font size, line spacing, and whitespace display. Increase font size or line spacing when reading a large file; turn on whitespace when investigating indentation or unexpected spaces. Reset settings if you want to return to the default reading setup. These preferences affect the editor in your browser, not your app's design.

Restore work without overwriting the wrong version

A restored draft is still pending work. After importing its JSON backup, inspect which files it will replace and compare them with the current source. If another build changed those files, reconcile the differences before saving. A draft created against an earlier source version should not be treated as the current project's complete state.

When a stale-source warning appears, download your draft, load the newer source, and reapply the relevant changes deliberately. This preserves both the newer project work and the part of your draft that you still need.

When to use chat instead

Use Reference code in chat when you understand the location but need help with the change. Explain the desired result and any behavior that must remain intact. Review the prepared message before sending; referencing a file does not automatically instruct RetronAI to rewrite it.

For example: “This component renders the request status. Add a visible label for overdue requests, preserve existing status filters, and keep the layout usable on mobile.” After the build, return to Code to inspect the result and to Preview to test it.

Need help with this step?Talk to our team