> ## Documentation Index
> Fetch the complete documentation index at: https://a5eb32f-docs-2.manicule.dev/llms.txt
> Use this file to discover all available pages before exploring further.
> For every page in one file, fetch https://a5eb32f-docs-2.manicule.dev/llms-full.txt (large).
> To search and read these docs as tools, connect the MCP server at https://a5eb32f-docs-2.manicule.dev/api/mcp.
> Every agent surface: https://a5eb32f-docs-2.manicule.dev/.well-known/llms-manifest.json

# Edit Project Files in Studio (/studio/code-editor)

<!-- agent-signals: reading_time_min: 2 · est_tokens: 678 · updated: 2026-11-25 -->
Related: [Work in Cloud Studio](/studio/overview.md), [Prompt Bhai and Review Changes](/studio/ai-chat.md), [Test Your App in Live Preview](/studio/live-preview.md), [Restore Changes and Push a Project](/studio/version-control.md)

> Open related files, search their contents, and check your edits against the running app.

Cloud Studio includes an in-browser code editor for inspecting and changing project files. Use it when you know which file needs a change or want to check the code Bhai wrote. A saved edit can still have a runtime bug, so check the result in Preview.

## Open the files you need

Switch from **Preview** to **Code** in the hotbar, then pick a file in the explorer. Open the component, its stylesheet, and any utility it calls in separate tabs. That makes it easier to follow an import or compare the names in a component and its styles without reopening the file tree each time.

The editor shows line numbers and supports multiple tabs. Use it to edit TypeScript, TSX, JSX, CSS (including Tailwind v4 styles), JSON, and Markdown. If the console reports an error in a particular file, open that file first and use its line numbers to locate the code before you change it.

## Find and save an edit

| Task                          | Windows and Linux | macOS     |
| ----------------------------- | ----------------- | --------- |
| Open the quick file picker    | `Ctrl + P`        | `Cmd + P` |
| Save the active file          | `Ctrl + S`        | `Cmd + S` |
| Search within the active file | `Ctrl + F`        | `Cmd + F` |

Search operates on the open file. Use the previous and next match controls to step through repeated uses before changing a value. If you need to follow a reference in another file, open it from the explorer and search there, too. To save immediately, use the shortcut or the editor’s **Save** button.

## Check manual and agent edits the same way

Studio can check project files for syntax and type errors when verifying an agent-generated preview. That check catches some broken edits, but you still need to try the behavior you asked for.

<Steps>
<Step title="Review the source">For manual changes, look at the surrounding code before saving. For edits from Bhai, open the diff in chat first, then use the editor to read the surrounding code or make a small adjustment.</Step>

<Step title="Reopen Preview">Switch to **Preview**, then repeat the interaction you changed. If it fails, check the console and return to the file named in the error instead of guessing which edit broke it.</Step>

<Step title="Keep or revert the change">If a correction is small, make it in **Code** and test again. If you need to back out a manual edit, check the file history. If you need to back out a whole prompt, use its **Undo** control when available.</Step>
</Steps>

## Next

* [Debug a change in live preview](/studio/live-preview).
* [Restore a file or undo a prompt](/studio/version-control).
