Build and customize
View and export your code
Look at the files behind your website and download one file or the whole project as a ZIP. How to open code view and what to do if a download fails.
Your website is made of files. Code view lets you see them, and download them. You use it to check what the agent built, to hand your project to a developer, or to keep your own copy.
Code view is for reading. You cannot type in it. To change your site, ask the agent in the chat.
Open code view
- Open your project in the editor.
- Click the code icon in the top bar. Its tooltip is View Source Code.
- The preview is replaced by your files.
To go back, click the same icon. Its tooltip is now View Preview.
On a small screen, open More actions and choose View source code. Use View preview to return.
What you see
| Area | What it shows |
|---|---|
| File list (left) | All the files in your project, in folders. Click a folder to open it, and a file to read it. |
| File name (top) | The path of the file you are reading. |
| Reader (right) | The file's content, with colors. It is read-only. |
| Agent strip (bottom) | Appears while the agent is writing. It shows the text coming in, live. |
When you open code view, the editor picks a main file for you. You can pick any other file in the list. A large project loads files as you open them. If a file is still loading, you see "Loading" followed by its name for a moment.
On a phone, a Files button opens the file list. Pick a file, and the list closes again.
Change the text size
Use the minus and plus buttons in the top-right of the code view to make the text smaller or bigger. The number between them shows the size. The smallest is 10 and the biggest is 22.
Download one file
- Click the file in the list.
- Click the download icon at the top right. Its tooltip is Export file.
- Your browser saves the file under its own name. You see "Downloaded" and the file path.
Download the whole project
- In code view, click ZIP at the top right. Its tooltip is Download all as ZIP.
- Your browser saves a file called project.zip.
- You see "Downloaded project as ZIP".
The ZIP holds the files in the list, in their folders. Unzip it on your computer to read or share the files.
What export does not include
The files are your website's source. The ZIP does not contain your data, such as orders, customer records or form entries. Your data stays in your eCG Cloud. To back it up, see Back up your data.
Keep your code safe in two places
Download a ZIP before a big change. For an automatic copy, connect GitHub and every change is saved there. See Save your code to GitHub.
Common questions
Can I edit a file here? No. Code view only shows files. Tell the agent what to change, or use Inspect on a part of the page. See Change one element at a time.
Do I need a paid plan? No. Code view and export are open to every workspace.
Does the ZIP include old versions? No. It contains your project as it is now. To go back to an old version, see Undo changes and restore a version.
I downloaded the ZIP. How do I run it? The ZIP holds source files. A developer can open them in their own tools. For a live website, use Publish instead. See Publish your website.
If something goes wrong
| What you see | What to do |
|---|---|
| The code icon is greyed out | Your project has no files yet. Wait for the first build to finish. |
| "No file selected" | Click a file in the list. |
| "Failed to create ZIP" | Try again. If it fails again, download your files one by one with Export file. |
| "Loading" stays on screen | The file is large or your connection is slow. Wait a moment, or click another file and then back. |
| You pressed Inspect and nothing happened | Inspect is off in code view. Switch back to the preview first. |
| The browser blocked the download | Allow downloads from eComGear in your browser, then try again. |