@@ -9,6 +9,16 @@ Extensions can add the following capabilities to Zed:
- [Slash Commands](./slash-commands.md)
- [Context Servers](./context-servers.md)
+## Developing an Extension Locally
+
+Before starting to develop an extension for Zed, be sure to [install Rust via rustup](https://www.rust-lang.org/tools/install).
+
+When developing an extension, you can use it in Zed without needing to publish it by installing it as a _dev extension_.
+
+From the extensions page, click the `Install Dev Extension` button and select the directory containing your extension.
+
+If you already have a published extension with the same name installed, your dev extension will override it.
+
## Directory Structure of a Zed Extension
A Zed extension is a Git repository that contains an `extension.toml`. This file must contain some
@@ -75,16 +85,6 @@ impl zed::Extension for MyExtension {
zed::register_extension!(MyExtension);
```
-## Developing an Extension Locally--Before starting to develop an extension for Zed, be sure to [install Rust via rustup](https://www.rust-lang.org/tools/install).--When developing an extension, you can use it in Zed without needing to publish it by installing it as a _dev extension_.--From the extensions page, click the `Install Dev Extension` button and select the directory containing your extension.--If you already have a published extension with the same name installed, your dev extension will override it.-
## Publishing your extension
To publish an extension, open a PR to [the `zed-industries/extensions` repo](https://github.com/zed-industries/extensions).