Projects & files
What this is for
Section titled “What this is for”Everything you build in SmartC Studio lives in a project: the contract, its tests, scenarios, notes and the compiled assembly. This guide shows how to create projects, work with their files and keep a backup.
How it works
Section titled “How it works”- One project, one contract. A project holds exactly one
.smart.ccontract, plus the files that belong to it. If a project ever holds a second contract, the workflow rail says it is ignored. - Everything stays in your browser. Projects are stored in this browser’s storage, not on a server. Nothing is uploaded unless you link the project to GitHub or deploy the contract.
- Your browser is not a backup. Clearing site data, switching browsers or using a private window means your projects are not there. Download a ZIP of anything you care about, or keep it in sync with GitHub.
Create a project
Section titled “Create a project”Click New Project on the home page (or + next to Projects in the sidebar) and choose a Project Type:
| Project type | What you get |
|---|---|
| Start with an example (Tip Jar) | A small, commented contract with tests and a scenario — the one the quick start uses |
| Create new Smart Contract | A starter contract with the usual structure: a transaction loop and a switch on the method code |
| Inspect Smart Contract(s) | A watchlist for looking at contracts that are already on the chain, without any code |
The name you enter becomes the project’s name. Project names are unique; if the name is taken, the Studio adds a number.
Work with files
Section titled “Work with files”Open a project in the sidebar to see its files. The menu of a folder offers:
- Add File: a new contract (
.smart.c), scenario (.scenario.json), test (.test.ts), inspection watchlist, Label Map or Markdown note (.md). - New Folder, to group files, for example tests in
tests/. - Upload File(s)…, Import ZIP… and Import Folder… to bring in files from your computer.
- Download (zip), to save the folder with all its files.
Files can be renamed and deleted from their own menu. Deleting can’t be undone.
Every editor has the same file actions in its toolbar:
| Action | Shortcut (Windows/Linux) | Shortcut (Mac) |
|---|---|---|
| Save | Ctrl+S | ⌘S |
| Download file | Ctrl+Shift+S | ⇧⌘S |
| Format document | Shift+Alt+F | ⇧⌥F |
The toolbar shows All Saved once there are no unsaved changes.
See File types for what each file is for.
Back up and move projects
Section titled “Back up and move projects”- Back up: use Download (zip) on the project folder. Keep the ZIP somewhere safe.
- Restore or move to another browser: click Import on the home page (or the upload icon next to Projects) and choose the ZIP.
- Keep it on GitHub: link the project to a folder of a GitHub repository and push your changes. See GitHub sync.
The home page
Section titled “The home page”The home page shows Continue where you left off (the files you opened last), your Projects, How it works (each step opens its part of the quick start) and the Learn links, including these docs.