Third-party extensions
These are extension maintained by other communities, that you install in your editor:
vim:ALEsupports Biome, just follow the installation instructionsneovim: you’ll have to installnvim-lspconfig, and follow the instructions.ALEalso supports Biome.helix: follow the instruction of this manualcoc-biome: Biome extension forcoc.nvimsublime text: follow theLSP-biomeinstallation instructionsEmacs: ensure you havelsp-modeinstalled, follow thelsp-biomeinstallation instructions to enable Biome support inlsp-modeNova: installBiomeextension and follow the instructions
Biome has an lsp-proxy command that acts as a server for the Language Server Protocol over stdin/stdout.
Using Biome globally
Section titled “Using Biome globally”To use Biome globally, you can set it as the formatter in your languages.toml file.
[language-server.biome]command = "biome"args = ["lsp-proxy"]
# Inline configuration is also supported# https://biomejs.dev/blog/biome-v2-4/#editor-inline-configuration[language-server.biome.config.biome.inlineConfig]linter.rules.suspicious.noConsole = "off"
[[language]]name = "javascript"language-servers = [ { name = "typescript-language-server", except-features = [ "format" ] }, "biome" ]auto-format = trueUsing Biome by project
Section titled “Using Biome by project”If you want Helix to correctly apply your project-specific settings, you must add a Biome configuration file to the roots field. This tells Helix to detect the project root based on the presence of Biome’s configuration files.
[language-server.biome]command = "biome"args = ["lsp-proxy"]
[[language]]name = "typescript"roots = ["biome.json", "biome.jsonc", "package.json"]language-servers = [ { name = "typescript-language-server", except-features = [ "format" ] }, "biome" ]auto-format = trueConfiguring other languages
Section titled “Configuring other languages”Biome supports formatting and linting for many languages, not just JavaScript. To configure Biome for other languages (such as TypeScript, JSON, or CSS), add a new [[language]] block to your configuration and specify the appropriate language server.
For reference, see:
Video record
Section titled “Video record”Code Action
Section titled “Code Action”Formatting
Section titled “Formatting”Copyright (c) 2023-present Biome Developers and Contributors.