Code Editor

Edit HTML, JavaScript and other files, then run web pages in a local sandbox

1

Create or Import a Project

Choose Code in the app list, then click New project in the sidebar. Create files or import files and folders into the workspace with their relative paths intact.

2

Switch Projects and Files

Select a project in the sidebar and manage its files in the workspace tree. Each project keeps its own tabs, edits and entry file. Switching projects stops the previous preview. Collapse the file tree when needed, or open it with the Files button on mobile.

3

Edit Agent-generated Code

Preview HTML, JavaScript or other code in a chat, then click Edit in Code to create a new project draft. Original filenames and the source reply stay unchanged.

4

Run and Debug

Select an HTML or JavaScript entry and click Run. Preview supports local CSS, classic JS, images and fonts, with logs and errors below. Run again to apply edits.

5

Save and Export

Click Save project or press Ctrl / ⌘ + S to save the project and all its files to your account. Download individual files or export a ZIP with its folder structure. Ctrl / ⌘ + Enter runs the project.