summaryrefslogtreecommitdiffhomepage
path: root/packages/web/src/content/docs/formatters.mdx
diff options
context:
space:
mode:
authorJay V <[email protected]>2025-10-03 13:46:56 -0400
committerJay V <[email protected]>2025-10-03 13:46:56 -0400
commit6378e6c06f3296ec8fdea13271c092e9830401ea (patch)
treed6528e50dc69ad9fef94be3f0bf9d97b3f5c0d14 /packages/web/src/content/docs/formatters.mdx
parent4159db4549efd9d598543a8030ed1fe80e56b3a9 (diff)
downloadopencode-6378e6c06f3296ec8fdea13271c092e9830401ea.tar.gz
opencode-6378e6c06f3296ec8fdea13271c092e9830401ea.zip
docs: rename opencode to OpenCode
Diffstat (limited to 'packages/web/src/content/docs/formatters.mdx')
-rw-r--r--packages/web/src/content/docs/formatters.mdx12
1 files changed, 6 insertions, 6 deletions
diff --git a/packages/web/src/content/docs/formatters.mdx b/packages/web/src/content/docs/formatters.mdx
index 5c00c3ca7..8853ca334 100644
--- a/packages/web/src/content/docs/formatters.mdx
+++ b/packages/web/src/content/docs/formatters.mdx
@@ -1,15 +1,15 @@
---
title: Formatters
-description: opencode uses language specific formatters.
+description: OpenCode uses language specific formatters.
---
-opencode automatically formats files after they are written or edited using language-specific formatters. This ensures that the code that is generated follows the code styles of your project.
+OpenCode automatically formats files after they are written or edited using language-specific formatters. This ensures that the code that is generated follows the code styles of your project.
---
## Built-in
-opencode comes with several built-in formatters for popular languages and frameworks. Below is a list of the formatters, supported file extensions, and commands or config options it needs.
+OpenCode comes with several built-in formatters for popular languages and frameworks. Below is a list of the formatters, supported file extensions, and commands or config options it needs.
| Formatter | Extensions | Requirements |
| -------------- | -------------------------------------------------------------------------------------------------------- | --------------------------------------- |
@@ -25,13 +25,13 @@ opencode comes with several built-in formatters for popular languages and framew
| standardrb | .rb, .rake, .gemspec, .ru | `standardrb` command available |
| htmlbeautifier | .erb, .html.erb | `htmlbeautifier` command available |
-So if your project has `prettier` in your `package.json`, opencode will automatically use it.
+So if your project has `prettier` in your `package.json`, OpenCode will automatically use it.
---
## How it works
-When opencode writes or edits a file, it:
+When OpenCode writes or edits a file, it:
1. Checks the file extension against all enabled formatters.
2. Runs the appropriate formatter command on the file.
@@ -43,7 +43,7 @@ This process happens in the background, ensuring your code styles are maintained
## Configure
-You can customize formatters through the `formatter` section in your opencode config.
+You can customize formatters through the `formatter` section in your OpenCode config.
```json title="opencode.json"
{