# Run and Test Code in Zed

> Run and test code in Zed with Terminal, Tasks, REPL, and debugger workflows without leaving the editor.

- 网址：https://funcoding.ai/agents/zed/running-testing/
- 来源：Zed 官方文档原文（英文），Apache-2.0 / GPL-3.0 许可，同步于 2026-10-11
- 官方原文：https://zed.dev/docs/running-testing

---
Use this section to run and test code in Zed, then debug issues without
leaving the editor.

## What's here

- **[Terminal](https://funcoding.ai/agents/zed/terminal/)**: Zed's built-in terminal emulator. Open multiple terminals, customize your shell, and integrate with the editor. Tasks and commands run here.

- **[Tasks](https://funcoding.ai/agents/zed/tasks/)**: Define and run shell commands with access to editor context like the current file, selection, or symbol. Use tasks to build, lint, run scripts, or execute any repeatable workflow.

- **[Debugger](https://funcoding.ai/agents/zed/debugger/)**: Set breakpoints, step through code, and inspect variables using Zed's built-in debugger. Works with C, C++, Go, JavaScript, Python, Rust, TypeScript, and more through the Debug Adapter Protocol.

- **[REPL](https://funcoding.ai/agents/zed/repl/)**: Run code interactively using Jupyter kernels. Execute selections or cells and see results inline—useful for Python, TypeScript (Deno), R, Julia, and other supported languages.

## Quick start

**Open a terminal**: Press `` Ctrl+` `` to toggle the terminal panel, or `Ctrl+~` to open a new terminal.

**Run a command**: Press `Cmd+Shift+R` (macOS) or `Ctrl+Shift+R` (Linux/Windows) to open the task picker, then type any shell command.

**Start debugging**: Press `Cmd+Shift+D` (macOS) or `Ctrl+Shift+D` (Linux/Windows) to open the debug panel and select a configuration.

**Run code interactively**: In a Python or TypeScript file, select some code and press `Ctrl+Shift+Enter` to execute it in a REPL session.
