{"slug":"edit-the-source","title":"Edit the source","summary":"Open any file in Code, edit it yourself with autosave, search the project, or highlight lines and send them with a request.","body":"Switch the project panel to **Code**, or press ⌘E (Ctrl+E on Windows) to open the source drawer.\n\n## Project layout\n\n| Folder | Holds |\n| --- | --- |\n| `app/` | Routes: one file per screen, plus layouts for tabs and stacks. |\n| `src/features/` | Screens and their behaviour, grouped by feature. |\n| `src/services/` | Data access: API clients and backend calls. |\n| `src/theme/` | Colors, spacing, radius, and typography. The Design tab edits these. |\n| `.env` | Public configuration the app is allowed to ship. |\n\n## Keyboard shortcuts\n\n| Shortcut | Action |\n| --- | --- |\n| ⌘P / Ctrl+P | Quick open a file by name |\n| ⌘F / Ctrl+F | Find in the current file |\n| ⌘⇧F / Ctrl+Shift+F | Search the whole project |\n| ⌘W / Ctrl+W | Close the current tab, where the browser allows it |\n| ⌘E / Ctrl+E | Open or close the code drawer |\n\n## Saving\n\nEdits save automatically. The project bar shows **Unsaved** while a save is pending and **Saved** once it lands, and the Code tab shows how many files are waiting. Reloading the preview saves first, then recompiles.\n\n## Ask about a specific place\n\nHighlight the lines you mean and send them with a chat message. The assistant reads the surrounding project, edits that part, and reports what changed. Asking about one screen does not give it permission to restyle the rest of the app.\n\n## Conflicts\n\nA manual save and an assistant turn can land together when they touch different files. If both change the same file differently, FluxNative keeps both sides and asks you to resolve the overlap. It never silently picks a winner. Reload when the workspace tells you the copy you edited is no longer current.\n\nExport downloads this same source. See [Export the project](/docs/export).","sectionSlug":"build","sectionTitle":"Build your app","updatedAt":"2026-09-23T22:51:25.250Z","previous":{"slug":"design-tokens","title":"Design tokens"},"next":{"slug":"revisions","title":"Revisions and undo"}}