Answer: You create a custom task by defining it in a tasks.json file, either the global tasks.json (usually located in ~/.config/zed/tasks.json) or the worktree-specific .zed/tasks.json file, or on the fly with oneshot tasks. Each task is defined with fields such as label, command, args, env, cwd, and more.
Status: Overdue (check was due 2026-11-20T13:44:45Z and has not succeeded)
Entry: tool/zed/features/create-custom-task
Revision: 1
Digest: sha256:ca6c33d9fb98a829 (changes whenever the content changes)
Timeline:
Created: 2026-11-13T04:06:19Z
Last changed: 2026-11-13T04:06:19Z
Last verified: 2026-11-19T13:44:45Z
Next check: 2026-11-20T13:44:45Z
Check interval: Daily
Expected change: No fixed schedule
Data:
Field | Value | Source | As of
global tasks file location | ~/.config/zed/tasks.json | [1] | 2026-11-19
worktree-specific tasks file | .zed/tasks.json | [1] | 2026-11-19
edit global tasks action | zed: open tasks | [1] | 2026-11-19
edit project tasks action | zed: open project tasks | [1] | 2026-11-19
spawn action | task: spawn | [1] | 2026-11-19
oneshot task key | opt-enter | [1] | 2026-11-19
Sources:
[1] Zed Industries. "zed.dev/docs/tasks.md". https://zed.dev/docs/tasks.md
Role: primary. Accessed: 2026-11-19T13:44:45Z
Quote: "This file is usually located in `~/.config/zed/tasks.json`." (Supports: global tasks file location)
Quote: "in the worktree-specific (local) `.zed/tasks.json` file" (Supports: worktree-specific tasks file)
Quote: "You can edit them by using the zed: open tasks action." (Supports: edit global tasks action)
Quote: "You can edit worktree-specific tasks by using the zed: open project tasks action." (Supports: edit project tasks action)
Quote: "task: spawn opens a modal with all available tasks in the current file." (Supports: spawn action)
Quote: "type a command inside the modal text field, and use `opt-enter` to spawn it." (Supports: oneshot task key)
Snapshot SHA-256: d7b3f034a1df1c84bd557109a8a1cb15db3108d779a859b1e55eb1a4f6097e15 (captured 2026-11-13T04:06:19Z)
Verification:
Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-13T04:06:19Z, so the values verified then were kept.
Cross-check: not-available at 2026-11-19T13:44:45Z. No independent second source is configured for this entry
Last successful check: 2026-11-19T13:44:45Z
Last attempt: 2026-11-19T13:44:45Z
Notes and limitations:
Extracted automatically from a single official source (section "Tasks").
Human-readable page: https://zed.dev/docs/tasks.html
Related:
https://latestn.com/tool/zed/features/create-icon-theme-extension How do I create an icon theme extension for Zed?
https://latestn.com/tool/zed/features/debug-python-app How do I debug a Python Flask or Django app in Zed?
https://latestn.com/tool/zed/features/debug-ruby How do I debug a Ruby script or Rails server in Zed?
https://latestn.com/tool/zed/features/completion-sources What sources does Zed use for code completions?
https://latestn.com/tool/zed/features/contact-requirements What are the requirements for adding a contact in Zed?
https://latestn.com/tool/zed/features/create-channel-subchannel How do I create a channel or subchannel in Zed?
https://latestn.com/tool/ All entries in AI tools
Change log:
Time | Event | Change | Source
2026-11-13T04:06:19Z | added | Entry created | —
Changes for this entry as a feed: https://latestn.com/tool/zed/features/create-custom-task/latest
Challenge this entry:
Open challenges: None
How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so.
Form: https://latestn.com/dispute/tool/zed/features/create-custom-task
POST: https://latestn.com/dispute/tool/zed/features/create-custom-task with claim, evidence_url, and optionally field and contact (form-encoded or JSON)
GET: https://latestn.com/dispute/tool/zed/features/create-custom-task?claim={what is wrong}&evidence_url={link}
How to cite:
LatestN. (2026). How do I create a custom task in Zed? Revision 1, last verified 2026-11-19T13:44:45Z. https://latestn.com/tool/zed/features/create-custom-task (accessed 2026-11-21T09:50:49Z).
@misc{LatestN_tool_zed_features_create_custom_task_r1,
title = {How do I create a custom task in Zed?},
author = {{LatestN}},
year = {2026},
howpublished = {\url{https://latestn.com/tool/zed/features/create-custom-task}},
note = {Revision 1; digest sha256:ca6c33d9fb98a829; last verified 2026-11-19T13:44:45Z; accessed 2026-11-21T09:50:49Z}
}
Reuse:
License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/)
Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation.
URL: https://latestn.com/tool/zed/features/create-custom-task