Running scenes
Run the open scene or the whole project from the ▶ buttons in Zed.
.tscn files show a ▶ in the gutter of the [gd_scene …] line, and scripts show one on their
extends line. Clicking it offers two tasks:
| Task | Command |
|---|---|
| Godot: run scene (scenes only) | godot --path <workspace root> res://<open scene> |
| Godot: run project | godot --path <workspace root>, which starts the main scene |
Both run Godot from the workspace root, so the workspace root must be the Godot project
(the folder with project.godot). godot must be on PATH.
Own commands
To run something else, add a task to .zed/tasks.json with the tag godot-scene (scenes) or
godot-project (scripts). Zed then offers it on the same ▶:
[
{
"label": "Godot 4.4: run project",
"command": "/Applications/Godot_4.4.app/Contents/MacOS/Godot",
"args": ["--path", "$ZED_WORKTREE_ROOT"],
"tags": ["godot-project"]
}
]
To debug instead of run, start the task from the Debug UI: a task whose command is godot
becomes a debug scenario, see Debugging.