fix(docs): locale markdown issues
This commit is contained in:
@@ -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` 依賴關係 |
|
||||
| oxfmt(實驗) | .js、.jsx、.ts、.tsx | `package.json` 和[實驗環境變量標誌](/docs/cli/#experimental) | `oxfmt` 依賴關係 |
|
||||
| 奧爾莫魯 | .hs | `ormolu` 命令可用 |
|
||||
| 格式化程序 | 擴展 | 要求 |
|
||||
| -------------------- | ------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- |
|
||||
| gofmt | .go | `gofmt` 命令可用 |
|
||||
| mix | .ex, .exs, .eex, .heex, .leex, .neex, .sface | `mix` 命令可用 |
|
||||
| prettier | .js, .jsx, .ts, .tsx, .html, .css, .md, .json, .yaml, 和 [更多](https://prettier.io/docs/en/index.html) | `package.json` 中有 `prettier` 依賴 |
|
||||
| biome | .js, .jsx, .ts, .tsx, .html, .css, .md, .json, .yaml, 和 [更多](https://biomejs.dev/) | `biome.json(c)` 配置文件 |
|
||||
| zig | .zig, .zon | `zig` 命令可用 |
|
||||
| clang-format | .c, .cpp, .h, .hpp, .ino, 和 [更多](https://clang.llvm.org/docs/ClangFormat.html) | `.clang-format` 配置文件 |
|
||||
| ktlint | .kt, .kts | `ktlint` 命令可用 |
|
||||
| ruff | .py, .pyi | `ruff` 命令可用并配置完成 |
|
||||
| rustfmt | .rs | `rustfmt` 命令可用 |
|
||||
| cargofmt | .rs | `cargo fmt` 命令可用 |
|
||||
| uv | .py, .pyi | `uv` 命令可用 |
|
||||
| rubocop | .rb, .rake, .gemspec, .ru | `rubocop` 命令可用 |
|
||||
| standardrb | .rb, .rake, .gemspec, .ru | `standardrb` 命令可用 |
|
||||
| htmlbeautifier | .erb, .html.erb | `htmlbeautifier` 命令可用 |
|
||||
| air | .R | `air` 命令可用 |
|
||||
| dart | .dart | `dart` 命令可用 |
|
||||
| ocamlformat | .ml, .mli | `ocamlformat` 命令可用,且存在 `.ocamlformat` 配置文件 |
|
||||
| terraform | .tf, .tfvars | `terraform` 命令可用 |
|
||||
| gleam | .gleam | `gleam` 命令可用 |
|
||||
| nixfmt | .nix | `nixfmt` 命令可用 |
|
||||
| shfmt | .sh, .bash | `shfmt` 命令可用 |
|
||||
| pint | .php | `composer.json` 中有 `laravel/pint` 依賴 |
|
||||
| oxfmt (Experimental) | .js, .jsx, .ts, .tsx | `package.json` 中有 `oxfmt` 依賴且啟用[實驗環境變量旗標](/docs/cli/#experimental) |
|
||||
| ormolu | .hs | `ormolu` 命令可用 |
|
||||
|
||||
因此,如果您的項目的`package.json`中有`prettier`,OpenCode將自動使用它。
|
||||
|
||||
|
||||
Reference in New Issue
Block a user