官方扩展
以下是由 Biome 团队维护的扩展,属于 Biome 组织 的一部分。
¥These are extensions that are maintained by the Biome team and part of the Biome organization.
VS Code
Section titled “VS Code”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:
-
打开命令面板(视图或 Ctrl/⌘+⇧+P)
¥open the Command Palette (View or Ctrl/⌘+⇧+P)
-
选择使用…格式化文档
¥select Format Document With…
-
选择配置默认格式化程序
¥select Configure Default Formatter
-
选择 Biome。
¥select Biome.
在 参考页面 中了解更多信息。
¥Read more in the reference page.
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 extension .zip from the Versions tab.
-
按 ⌘ / Ctrl+Alt+S + , 打开 IDE 设置,然后选择“插件”。
¥Press ⌘ / Ctrl+Alt+S + , to open the IDE settings and then select Plugins.
-
在扩展页面上,单击“设置”按钮,然后单击“从磁盘安装插件…”
¥On the extension 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
在 参考页面 中了解更多信息。
¥Read more in the reference page.
Biome v2.1 中文网 - 粤ICP备13048890号