# The editor and preview (/build/editor-and-preview)

Open a project and select **Vibe code** in its sidebar. The chat is on one side, and a live preview of your app is on the other.

## The chat [#the-chat]

Type what you want in the box at the bottom and press `Enter` to send. `Shift` `Enter` starts a new line. Each message uses one credit.

While the agents work, the chat shows what they're doing: the steps, the files they change and a progress card. To stop them, select **Stop the agent**. See [Chat with the agents](/build/chat) for commands, attachments and chat history.

## The preview [#the-preview]

The preview is your app, running. It updates as the agents change the code.

- **Desktop** and **Phone** switch the preview's size, so you can check your app on a small screen.
- **Reload the preview** reloads it, like refreshing a browser.
- **Open in a new tab** opens the app in its own tab, at its preview address.
- **Quick edit** lets you click anything in the preview and change how it looks. See [Quick edit](/build/quick-edit).

The preview runs on your project's [sandbox](/build/sandbox). If it pauses after a while without activity, it starts again when you come back.

## Arrange the panels [#arrange-the-panels]

Drag the line between the chat and the preview to resize them. **Minimize the chat** gives the preview the whole width, and **Dock the chat** puts it back.

On a phone, the chat and the preview are tabs you switch between.

> **The preview isn't loading?**: See [The preview won't load](/help/troubleshooting/preview-wont-load).
