Skip to content

官方扩展

以下是由 Biome 团队维护的扩展,属于 Biome 组织 的一部分。

¥These are extensions that are maintained by the Biome team and part of the Biome organization.

Biome 编辑器集成允许你:

¥The Biome editor integration allows you to:

  • 保存时或发出“格式化”命令时格式化文件。

    ¥Format files on save or when issuing the Format command.

  • 对文件进行 Lint 并应用代码修复

    ¥Lint files and apply code fixes

从 Visual Studio Marketplace 安装我们的官方 Biome VS Code 扩展

¥Install our official Biome VS Code extension from the Visual Studio Marketplace.

要使 Biome 成为默认格式化程序,请打开 支持的文件 并:

¥To make Biome the default formatter open a supported file and:

  1. 打开命令面板(视图或 Ctrl/++P

    ¥open the Command Palette (View or Ctrl/++P)

  2. 选择使用…格式化文档

    ¥select Format Document With…

  3. 选择配置默认格式化程序

    ¥select Configure Default Formatter

  4. 选择 Biome。

    ¥select Biome.

参考页面 中了解更多信息。

¥Read more in the reference page.

要安装 Biome IntelliJ 插件,请转到 官方插件页面 或按照以下步骤操作:

¥To install the Biome IntelliJ plugin, head over to official plugin page or follow these steps:

来自 JetBrains IDE:

¥From JetBrains IDEs:

  1. 打开 IntelliJ IDEA。

    ¥Open IntelliJ IDEA.

  2. 转到设置/首选项。

    ¥Go to Settings/Preferences.

  3. 从左侧菜单中选择插件。

    ¥Select Plugins from the left-hand menu.

  4. 清除守护进程发出的日志

    ¥Click on the Marketplace tab.

  5. 搜索 “Biome” 并单击安装。

    ¥Search for “Biome” and click Install.

  6. 重新启动 IDE 以激活插件。

    ¥Restart the IDE to activate the plugin.

来自磁盘:

¥From disk:

  1. 从“版本”选项卡下载 .zip 扩展名。

    ¥Download the extension .zip from the Versions tab.

  2. / Ctrl+Alt+S + , 打开 IDE 设置,然后选择“插件”。

    ¥Press / Ctrl+Alt+S + , to open the IDE settings and then select Plugins.

  3. 在扩展页面上,单击“设置”按钮,然后单击“从磁盘安装插件…”

    ¥On the extension page, click The Settings button and then click Install Plugin from Disk….

  1. 打开命令面板(视图或 Ctrl/++P

    ¥open the Command Palette (View or Ctrl/++P)

  2. 选择 zed:extensions

    ¥select zed: extensions

  3. 搜索 Biome

    ¥search Biome

  4. 选择安装

    ¥select Install

参考页面 中了解更多信息。

¥Read more in the reference page.