On this page
Everything Swarmz builds is ordinary code that you can read in the Code tab. On a paid plan you can edit it by hand. On the Free plan the code is read-only.
You never need to touch the code to build with Swarmz. It is there if you want to look, learn or make a small change yourself.
Step 1: Open the Code tab
Click Code in the top bar. You see the files of your project on the left and the open file on the right.
Step 2: Choose a file
Click a file to open it. The bar at the top of the preview area shows which file is open. Swarmz writes standard React, TypeScript and Tailwind CSS.
Step 3: Edit and save
On a paid plan, type your change. It saves automatically, and you can also press Ctrl+S (Cmd+S on a Mac). The preview updates.
Read-only on the Free plan#
On the Free plan the editor shows Read-only, code editing is a Pro feature, with an Upgrade button. You can still read and scroll every file. People with view-only access to a project also see the code as read-only.
The terminal#
The Terminal switch in the Code view opens a command line inside your project's workspace. It is for developers who want to run a command, for example to check a file or run a script. If you are not sure you need it, you do not.
Jump from the preview to the code#
In Visual mode, select an element in the preview and choose Go to code. The editor opens the file where that element lives. See Change things by pointing at them.
You can also reference a file in the chat, so Swarmz knows which file you mean. Type @ in the prompt box and choose the file.
Work in your own editor#
Connect your project to GitHub and your code is kept in a repository that you own. From the GitHub menu in the editor you can choose Open in GitHub or Open in VS Code, work there, and your pushes sync back to the project. See Connect GitHub and sync your code and Take your code with you.
Good to know#
Warning
If you edit a file and then ask Swarmz to change the same part, check the result. Swarmz builds on the files as they are, including your edits, but a small manual change can be overwritten by a larger request.
- Every change you save is part of your project history, so you can go back to an earlier version.
- A syntax mistake can break the preview. If it does, undo it in the editor or restore a version, or ask Swarmz to fix the error. See Fix errors in your app.
Common questions#
Do I need to know how to code to use Swarmz?
No. The code tab is optional.
Why is the code editor locked?
You are either on the Free plan, where editing is a Pro feature, or you have view-only access to this project.
Can I upload my own code files?
Connect GitHub and push them to the repository. They sync into your project.
Can I download my code as a zip?
Not today. GitHub is how your code leaves Swarmz. See Take your code with you.
Was this helpful?
Related articles
Find your way around the editor
A tour of the chat, preview, top bar and Tools in the Swarmz editor, on desktop and phone.In Getting startedConnect GitHub and sync your code
Link a project to a private GitHub repository, keep your code in sync in both directions and open it in GitHub or VS Code.In Integrations and paymentsTake your code with you
Your code is yours. Sync it to your own GitHub repository to keep a copy or work on it elsewhere.In Privacy, security and safetyChange things by pointing at them
Click any element in your preview to restyle it, edit text right on the page, draw on it or leave a comment, then send the changes to Swarmz.
Still have a question?
Ask about this article, or talk to a person.