Skip to content
All documentation

Edit the source

Open any file in Code, edit it with autosave, search the project, move or replace files, or send highlighted lines with a request.

Updated Oct 12, 2026

The Code tab: the file explorer and TodayScreen.tsx open in the editor, beside the preview
Code shows every file; edits save by themselves and the preview rebuilds.

Steps

  1. Open Code in the project panel, or press ⌘E (Ctrl+E).
  2. Open a file with ⌘P (Ctrl+P) and edit it. It saves by itself and the preview rebuilds.
  3. To ask about one place, highlight the lines and send them with a chat message.
  4. Rename, move, replace or delete a file from its ⋯ menu; code that uses it is updated too.

Where things live

FolderHolds
app/Routes: one file per screen, plus tab and stack layouts.
src/features/Screens and their behaviour, by feature.
src/services/Data access: API clients and backend calls.
src/theme/Colours, spacing, radius and type; the Design tab edits these.
.envPublic configuration the app may ship.

Shortcuts

ShortcutAction
⌘P / Ctrl+POpen a file by name
⌘F / Ctrl+F, ⌘⇧F / Ctrl+Shift+FFind in the file, search the project
⌥Z / Alt+ZWord wrap on or off
⌘E / Ctrl+EOpen or close the code drawer
⌘K / Ctrl+KFind an app, page, action or Help article
⌘J / Ctrl+JOpen or close the assistant
⌘/ / Ctrl+/List every shortcut

Good to know

  • Upload to assets/ adds images, fonts and videos; a .zip is unpacked and a file with the same name is replaced. On a landing page it is Upload to public/: the page serves public/ as it is, so an image or video there loads on the page.
  • A path built at run time is not updated by a move; the dialog names those files.
  • Each file change is its own version in Version history. It needs the Edit code permission and waits while a turn runs.
  • If your save and a turn change the same file differently, both sides are kept for you to resolve. Close files with ×: ⌘W closes the browser tab.

Export the project · Revisions and undo

Did this page help?

Which app will you launch first?

Start with a prompt, images, or Figma. No credit card required.

Start building Explore plans

Taking a little longer than usual…

Loading FluxNative