diff options
| author | opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com> | 2026-02-09 19:57:32 +0000 |
|---|---|---|
| committer | opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com> | 2026-02-09 19:57:32 +0000 |
| commit | 389afef33654058cc4369d2e8db8f1c195defa1f (patch) | |
| tree | 958610ffcf60e1e63b98883895fd34c8b71fd75d /packages/web/src/content/docs/zh-cn/formatters.mdx | |
| parent | 274bb948e793c72d22d4e2d31e6b9559c6ff4d6c (diff) | |
| download | opencode-389afef33654058cc4369d2e8db8f1c195defa1f.tar.gz opencode-389afef33654058cc4369d2e8db8f1c195defa1f.zip | |
chore: generate
Diffstat (limited to 'packages/web/src/content/docs/zh-cn/formatters.mdx')
| -rw-r--r-- | packages/web/src/content/docs/zh-cn/formatters.mdx | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/packages/web/src/content/docs/zh-cn/formatters.mdx b/packages/web/src/content/docs/zh-cn/formatters.mdx index 11279eee4..b788b8c9c 100644 --- a/packages/web/src/content/docs/zh-cn/formatters.mdx +++ b/packages/web/src/content/docs/zh-cn/formatters.mdx @@ -11,32 +11,32 @@ description: OpenCode 使用特定于语言的清理程序。 OpenCode附带了多个适用于流行语言和框架的内置初始化程序。下面是格式化程序、支持的文件扩展名以及所需的命令或配置选项的列表。 -| 格式化程序 | 擴展 | 要求 | -| ------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------- | -| 政府 | .go | `gofmt` 命令可用 | -| 混合 | .ex、.exs、.eex、.heex、.leex、.neex、.sface | `mix` 命令可用 | -| 更漂亮 | .js、.jsx、.ts、.tsx、.html、.css、.md、.json、.yaml 和 [更多的](https://prettier.io/docs/en/index.html) | 在 `package.json` 中有 `prettier` 依赖 | -| 生物群系 | .js、.jsx、.ts、.tsx、.html、.css、.md、.json、.yaml 和 [更多的](https://biomejs.dev/) | `biome.json(c)` 配置文件 | -| 之字形 | .zig、.zon | `zig` 命令可用 | -| clang 格式 | .c、.cpp、.h、.hpp、.ino 和 [更多的](https://clang.llvm.org/docs/ClangFormat.html) | `.clang-format` 配置文件 | -| 克特林特 | .kt、.kts | `ktlint` 命令可用 | -| 领子 | .py, .pyi | `ruff` 命令可通过配置 | -| 生锈 | .rs | `rustfmt` 命令可用 | -| 货物运输 | .rs | `cargo fmt` 命令可用 | -| 美丽 | .py, .pyi | `uv` 命令可用 | -| 鲁博科普 | .rb、.rake、.gemspec、.ru | `rubocop` 命令可用 | -| 标准rb | .rb、.rake、.gemspec、.ru | `standardrb` 命令可用 | -| html美化器 | .erb、.html.erb | `htmlbeautifier` 命令可用 | -| 空气 | .R | `air` 命令可用 | -| 飞镖 | .dart | `dart` 命令可用 | -| ocaml 格式 | .ml、.mli | `ocamlformat` 可用命令和 `.ocamlformat` 配置文件 | -| 地形 | .tf、.tfvars | `terraform` 命令可用 | -| 微光 | .gleam | `gleam` 命令可用 | -| 尼克斯夫MTT | .nix | `nixfmt` 命令可用 | -| sfmt | .sh、.bash | `shfmt` 命令可用 | -| 品脱 | .php | 在 `composer.json` 中有 `laravel/pint` 依赖 | +| 格式化程序 | 擴展 | 要求 | +| ------------- | -------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------ | +| 政府 | .go | `gofmt` 命令可用 | +| 混合 | .ex、.exs、.eex、.heex、.leex、.neex、.sface | `mix` 命令可用 | +| 更漂亮 | .js、.jsx、.ts、.tsx、.html、.css、.md、.json、.yaml 和 [更多的](https://prettier.io/docs/en/index.html) | 在 `package.json` 中有 `prettier` 依赖 | +| 生物群系 | .js、.jsx、.ts、.tsx、.html、.css、.md、.json、.yaml 和 [更多的](https://biomejs.dev/) | `biome.json(c)` 配置文件 | +| 之字形 | .zig、.zon | `zig` 命令可用 | +| clang 格式 | .c、.cpp、.h、.hpp、.ino 和 [更多的](https://clang.llvm.org/docs/ClangFormat.html) | `.clang-format` 配置文件 | +| 克特林特 | .kt、.kts | `ktlint` 命令可用 | +| 领子 | .py, .pyi | `ruff` 命令可通过配置 | +| 生锈 | .rs | `rustfmt` 命令可用 | +| 货物运输 | .rs | `cargo fmt` 命令可用 | +| 美丽 | .py, .pyi | `uv` 命令可用 | +| 鲁博科普 | .rb、.rake、.gemspec、.ru | `rubocop` 命令可用 | +| 标准rb | .rb、.rake、.gemspec、.ru | `standardrb` 命令可用 | +| html美化器 | .erb、.html.erb | `htmlbeautifier` 命令可用 | +| 空气 | .R | `air` 命令可用 | +| 飞镖 | .dart | `dart` 命令可用 | +| ocaml 格式 | .ml、.mli | `ocamlformat` 可用命令和 `.ocamlformat` 配置文件 | +| 地形 | .tf、.tfvars | `terraform` 命令可用 | +| 微光 | .gleam | `gleam` 命令可用 | +| 尼克斯夫MTT | .nix | `nixfmt` 命令可用 | +| sfmt | .sh、.bash | `shfmt` 命令可用 | +| 品脱 | .php | 在 `composer.json` 中有 `laravel/pint` 依赖 | | oxfmt(实验) | .js、.jsx、.ts、.tsx | 在 `package.json` 中有 `oxfmt` 依赖并启用[实验环境变量标记](/docs/cli/#experimental) | -| 奥尔莫鲁 | .hs | `ormolu` 命令可用 | +| 奥尔莫鲁 | .hs | `ormolu` 命令可用 | 因此,如果您的项目的`package.json`或`prettier`,OpenCode将自动使用它。 |
