This extension adds support for Biome in Zed.
Currently supports JavaScript, TypeScript, TSX, Vue.js, Astro and Svelte files.
Requires Zed >= v0.131.0.
This extension is available in the extensions view inside the Zed editor. Open zed: extensions
and search for Biome.
- Clone this repository.
- Run the
zed: install dev extensions
command. - Select the directory of this repo.
Example configurations in zed settings.json
.
// settings.json
{
"format_on_save": "on",
"code_actions_on_format": {
"source.fixAll": true,
"source.organizeImports": true
},
"formatter": {
"external": {
"command": "./node_modules/@biomejs/biome/bin/biome",
"arguments": [
"format",
"--write",
"--stdin-file-path",
"{buffer_path}"
]
}
}
}