Documentation Navigation
Configure

Formatters

Format after every edit, automatically.

#Prettier

codey.json
{ "formatters": { "prettier": { "enabled": true } } }
  • Auto-detected — runs when your project already uses Prettier.

#Custom command

codey.json
{ "formatters": { "custom": { "command": "cargo fmt -- {file}" } } }
  • Runs per file — {file} is replaced with the edited path.
  • Failures surface — a bad format shows the error, never silently skips.

#See also