Skip to content

Zed extension

Biome’s official Zed extension adds formatting, linting, and code fixes to Zed. This page covers how the extension finds Biome and every setting it accepts.

To install the extension and set up formatting and fixes on save, see Set up your editor.

The extension requires Zed v0.131.0 or later. It runs the Biome binary and looks for a Biome installation in the following order:

  1. The path specified in Zed’s configuration, for example:
.zed/settings.json
{
"lsp": {
"biome": {
"binary": {
"path": "/path/to/biome",
"arguments": [
"lsp-proxy"
]
}
}
}
}
  1. Biome installed locally through package.json.
  2. Biome installed system-wide in PATH.

If none of them exists, the extension asks Zed to install Biome with npm and uses that installation.

Set the following settings under lsp.biome.settings in your Zed settings.

Type: string
Default: null

Path to a custom configuration file. If unset, Biome uses the default configuration file.

.zed/settings.json
{
"lsp": {
"biome": {
"settings": {
"config_path": "<path>/biome.json"
}
}
}
}

Type: boolean
Default: false

Requires a configuration file before the extension enables Biome. When set to true, the extension enables Biome only if a biome.json file is present in the project.

.zed/settings.json
{
"lsp": {
"biome": {
"settings": {
"require_config_file": true
}
}
}
}

Type: object
Default: null

An inline Biome configuration. Its options override the options from any biome.json file read from disk, or the defaults.

For example, to turn off the noConsole rule while you develop locally, even though your biome.json enables it:

.zed/settings.json
{
"lsp": {
"biome": {
"settings": {
"inline_config": {
"linter": {
"rules": {
"suspicious": {
"noConsole": "off"
}
}
}
}
}
}
}
}

Type: boolean
Default: false

Enables the go-to definition feature in the editor.

.zed/settings.json
{
"lsp": {
"biome": {
"settings": {
"goto_definition": true
}
}
}
}

To exclude Biome for a given language (for example, GraphQL) in a project, add !biome to its language servers:

.zed/settings.json
{
"languages": {
"GraphQL": {
"language_servers": [ "!biome", "..." ]
}
}
}

Do not add biome to the top-level language_servers, formatter, or code_actions_on_format keys in your Zed settings.json. Setting Biome globally can break languages that Biome does not support, such as Rust or Python. Configure it per language instead, for the languages Biome supports.