Skip to main content

Files and code

Choose Code in the top bar to see the app's files in the left sidebar, and Code View to edit them.

Files​

index.html, marked with a star, is the app's entry point. Generated apps usually keep the rest under src: screens and UI in src/components, and the code that calls your connectors in src/lib.

ButtonWhat it does
+New File, New Folder, Upload Files or Upload Folder
Pull files from storageLoads the latest saved files. See Pull files from storage
Download bundleDownloads the app's source as a ZIP, set up as a Vite project
The Files buttons, with the + menu open
The Files buttons, with the + menu open

Right-click a file or folder for more actions:

On a fileOn a folder
Rename, Duplicate, DeleteRename, New File Here, New Folder Here, Delete

Deleting a folder deletes every file in it.

Upload files​

  • Upload text files, such as code, CSS, JSON and SVG. Don't upload binary files, such as PNG images or fonts, here. They're read as text and won't work.
  • If a file with the same path exists, you're asked whether to replace it.
  • Upload Folder puts the folder's contents at the root of the app. The folder itself isn't kept.

Find files and text​

ToUse
Filter the list by file name or contentThe search box above the list
Go to a file by nameCtrl+P (Cmd+P on Mac)
Search inside every fileCtrl+Shift+F (Cmd+Shift+F on Mac). Tick Aa to match case

Edit code​

Click a file to open it. A dot next to the file name means it has unsaved changes.

Files aren't saved as you type. Click Save on the file, or press Ctrl+S, to save it and rebuild the app. If you switch files with unsaved changes, choose Save, Discard or Cancel.

Markdown files show a live preview next to the code.

ShortcutAction
Ctrl+S / Cmd+SSave the file
Ctrl+F / Cmd+FFind
Ctrl+H / Cmd+HFind and replace
F3, Shift+F3Next match, previous match
Ctrl+G / Cmd+GGo to line
Ctrl+/ or Cmd+/Comment or uncomment
Ctrl+SpaceAutocomplete
Ctrl+QFold or unfold a block

Fix a syntax error​

If the code doesn't build, you see Syntax error — preview not updated, and the preview keeps the last working build.

  • Copy copies the error
  • Fix with AI sends the error to the chat as a prompt

You can also fix the code yourself and save the file again.

Pull files from storage​

Use this when the app's files may have changed somewhere else, for example through MCP, the code editor extension or a teammate. Click Pull files from storage above the file list to load the latest saved version of every file.

Pulling replaces unsaved edits

If you have unsaved edits, you're asked to confirm, and continuing overwrites them. Save the files you want to keep first.

Edit in VS Code, Cursor or Windsurf​

Save the app, then click Open in VS Code in the footer. To use Cursor or Windsurf, click the arrow next to it. Your choice is remembered. You need the DronaHQ code editor extension.

To let your editor's AI agent build the app instead, choose Connect via MCP from the same menu. See DronaHQ MCP.