第一方插件
这些是由 Biome 团队维护的插件,是 Biome 组织 的一部分。
¥These are plugins that are maintained by the Biome team and part of the Biome organization.
VS Code
Section titled VS CodeBiome 编辑器集成允许你:
¥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:
- 
打开命令面板(视图或 Ctrl/⌘+⇧+P) ¥open the Command Palette (View or Ctrl/⌘+⇧+P) 
- 
选择使用…格式化文档 ¥select Format Document With… 
- 
选择配置默认格式化程序 ¥select Configure Default Formatter 
- 
选择 Biome。 ¥select Biome. 
IntelliJ
Section titled IntelliJ要安装 Biome IntelliJ 插件,请转到 官方插件页面 或按照以下步骤操作:
¥To install the Biome IntelliJ plugin, head over to official plugin page or follow these steps:
来自 JetBrains IDE:
¥From JetBrains IDEs:
- 
打开 IntelliJ IDEA。 ¥Open IntelliJ IDEA. 
- 
转到设置/首选项。 ¥Go to Settings/Preferences. 
- 
从左侧菜单中选择插件。 ¥Select Plugins from the left-hand menu. 
- 
清除守护进程发出的日志 ¥Click on the Marketplace tab. 
- 
搜索 “Biome” 并单击安装。 ¥Search for “Biome” and click Install. 
- 
重新启动 IDE 以激活插件。 ¥Restart the IDE to activate the plugin. 
来自磁盘:
¥From disk:
- 
从发布选项卡下载插件 .zip。 ¥Download the plugin .zip from releases tab. 
- 
按 ⌘Сmd,打开 IDE 设置,然后选择插件。¥Press ⌘Сmd,to open the IDE settings and then select Plugins.
- 
在插件页面上,单击“设置”按钮,然后单击“从磁盘安装插件…”。 ¥On the Plugins page, click The Settings button and then click Install Plugin from Disk…. 
- 
打开命令面板(视图或 Ctrl/⌘+⇧+P) ¥open the Command Palette (View or Ctrl/⌘+⇧+P) 
- 
选择 zed:extensions ¥select zed: extensions 
- 
搜索 Biome ¥search Biome 
- 
选择安装 ¥select Install