Formatter Presets
This section provides a reference for the external formatter presets available in Panache.
Read the Formatting Guide for instructions on how to configure external formatters for code chunks in Panache.
air
R formatter for reproducible style conventions.
- Homepage
- https://github.com/posit-dev/air
- Supported Languages
-
r - Command
-
air args-
[format, {}] - Type
- File-based
alejandra
Uncompromising Nix formatter.
- Homepage
- https://kamadorueda.com/alejandra/
- Supported Languages
-
nix - Command
-
alejandra args-
[] - Type
- Stdin
asmfmt
Go assembler formatter.
- Homepage
- https://github.com/klauspost/asmfmt
- Supported Languages
-
asm,assembly - Command
-
asmfmt args-
[] - Type
- Stdin
astyle
Formatter for C/C++/Java/C# source code.
- Homepage
- https://astyle.sourceforge.net/astyle.html
- Supported Languages
-
c,cpp,c++,java,csharp,c# - Command
-
astyle args-
[--quiet] - Type
- Stdin
autocorrect
Formatter/linter for CJK spacing and punctuation.
- Homepage
- https://github.com/huacnlee/autocorrect
- Supported Languages
-
text,txt,markdown,md - Command
-
autocorrect args-
[--stdin] - Type
- Stdin
bean-format
Reformat Beancount files to align posting amounts.
- Homepage
- https://beancount.github.io/docs/running_beancount_and_generating_reports.html#bean-format
- Supported Languages
-
beancount,bean - Command
-
bean-format args-
[-] - Type
- Stdin
beautysh
Bash beautifier for shell scripts.
- Homepage
- https://github.com/lovesegfault/beautysh
- Supported Languages
-
sh,bash,shell - Command
-
beautysh args-
[-] - Type
- Stdin
bibtex-tidy
Cleaner and formatter for BibTeX files.
- Homepage
- https://github.com/FlamingTempura/bibtex-tidy
- Supported Languages
-
bibtex,bib - Command
-
bibtex-tidy args-
[--quiet] - Type
- Stdin
black
Opinionated Python formatter.
- Homepage
- https://github.com/psf/black
- Supported Languages
-
python,py - Command
-
black args-
[-] - Type
- Stdin
bpfmt
Android Blueprint file formatter.
- Homepage
- https://source.android.com/docs/setup/reference/androidbp
- Supported Languages
-
bp,blueprint - Command
-
bpfmt args-
[-w, {}] - Type
- File-based
bsfmt
Formatter for BrighterScript and BrightScript.
- Homepage
- https://github.com/rokucommunity/brighterscript-formatter
- Supported Languages
-
brs,brighterscript,brightscript - Command
-
bsfmt args-
[{}, --write] - Type
- File-based
buf
Formatter for Protocol Buffer files.
- Homepage
- https://buf.build/docs/reference/cli/buf/format
- Supported Languages
-
proto,protobuf - Command
-
buf args-
[format, -w, {}] - Type
- File-based
buildifier
Formatter for Bazel BUILD and .bzl files.
- Homepage
- https://github.com/bazelbuild/buildtools/tree/main/buildifier
- Supported Languages
-
bazel,bzl,starlark - Command
-
buildifier args-
[-path, {}, -] - Type
- Stdin
cabal-fmt
Formatter for Haskell .cabal files.
- Homepage
- https://hackage.haskell.org/package/cabal-fmt
- Supported Languages
-
cabal,haskell - Command
-
cabal-fmt args-
[--inplace, {}] - Type
- File-based
clang-format
Formatter for C-family languages.
- Homepage
- https://clang.llvm.org/docs/ClangFormat.html
- Supported Languages
-
c,h,cpp,c++,hpp,cc,cxx,objc,objective-c,obj-c,java,csharp,c# - Command
-
clang-format args-
[-] - Type
- Stdin
cljfmt
Detect and fix formatting errors in Clojure code.
- Homepage
- https://github.com/weavejester/cljfmt
- Supported Languages
-
clojure,clj,cljs,cljc,edn - Command
-
cljfmt args-
[fix, -] - Type
- Stdin
cmake-format
Formatter for CMake listfiles.
- Homepage
- https://github.com/cheshirekow/cmake_format
- Supported Languages
-
cmake - Command
-
cmake-format args-
[-] - Type
- Stdin
cue-fmt
Format CUE files.
- Homepage
- https://cuelang.org
- Supported Languages
-
cue - Command
-
cue args-
[fmt, -] - Type
- Stdin
dfmt
Formatter for D source code.
- Homepage
- https://github.com/dlang-community/dfmt
- Supported Languages
-
d - Command
-
dfmt args-
[] - Type
- Stdin
efmt
Erlang code formatter.
- Homepage
- https://github.com/sile/efmt
- Supported Languages
-
erlang,erl - Command
-
efmt args-
[-] - Type
- Stdin
fish_indent
Indent or prettify fish shell scripts.
- Homepage
- https://fishshell.com/docs/current/cmds/fish_indent.html
- Supported Languages
-
fish - Command
-
fish_indent args-
[] - Type
- Stdin
fixjson
JSON fixer using relaxed JSON5 parsing.
- Homepage
- https://github.com/rhysd/fixjson
- Supported Languages
-
json,json5 - Command
-
fixjson args-
[] - Type
- Stdin
gdformat
Formatter for Godot GDScript.
- Homepage
- https://github.com/Scony/godot-gdscript-toolkit
- Supported Languages
-
gdscript,gd - Command
-
gdformat args-
[-] - Type
- Stdin
gleam
Format Gleam source files.
- Homepage
- https://github.com/gleam-lang/gleam
- Supported Languages
-
gleam - Command
-
gleam args-
[format, --stdin] - Type
- Stdin
gofmt
Go formatter.
- Homepage
- https://pkg.go.dev/cmd/gofmt
- Supported Languages
-
go,golang - Command
-
gofmt args-
[] - Type
- Stdin
gofumpt
Stricter formatting for Go.
- Homepage
- https://github.com/mvdan/gofumpt
- Supported Languages
-
go,golang - Command
-
gofumpt args-
[] - Type
- Stdin
google-java-format
Reformats Java code to Google Java Style.
- Homepage
- https://github.com/google/google-java-format
- Supported Languages
-
java - Command
-
google-java-format args-
[-] - Type
- Stdin
hurlfmt
Formatter for Hurl files.
- Homepage
- https://hurl.dev/
- Supported Languages
-
hurl - Command
-
hurlfmt args-
[] - Type
- Stdin
jsonnetfmt
Format Jsonnet files.
- Homepage
- https://github.com/google/go-jsonnet
- Supported Languages
-
jsonnet,libsonnet - Command
-
jsonnetfmt args-
[-] - Type
- Stdin
ktfmt
Kotlin formatter for community style conventions.
- Homepage
- https://github.com/facebook/ktfmt
- Supported Languages
-
kotlin,kt,kts - Command
-
ktfmt args-
[-] - Type
- Stdin
leptosfmt
Formatter for Leptos view! macro code.
- Homepage
- https://github.com/bram209/leptosfmt
- Supported Languages
-
rust,rs - Command
-
leptosfmt args-
[--stdin] - Type
- Stdin
mdformat
Opinionated Markdown formatter.
- Homepage
- https://github.com/executablebooks/mdformat
- Supported Languages
-
md,markdown,qmd,rmd - Command
-
mdformat args-
[-] - Type
- Stdin
nginxfmt
Formatter for nginx configuration files.
- Homepage
- https://github.com/slomkowski/nginx-config-formatter
- Supported Languages
-
nginx,nginxconf - Command
-
nginxfmt args-
[-] - Type
- Stdin
nixfmt
Official formatter for Nix code.
- Homepage
- https://github.com/NixOS/nixfmt
- Supported Languages
-
nix - Command
-
nixfmt args-
[] - Type
- Stdin
prettier
Opinionated formatter for web, JSON, YAML, and Markdown ecosystems.
- Homepage
- https://prettier.io/
- Supported Languages
-
javascript,js,typescript,ts,jsx,tsx,json,jsonc,yaml,yml,markdown,md,css,scss,less,html,vue,svelte,graphql,gql - Command
-
prettier args-
[--stdin-filepath, {}] - Type
- Stdin
pycln
Removes unused Python imports.
- Homepage
- https://github.com/hadialqattan/pycln
- Supported Languages
-
python,py - Command
-
pycln args-
[--silence, -] - Type
- Stdin
pyproject-fmt
Formatter for pyproject.toml with comment support.
- Homepage
- https://github.com/tox-dev/toml-fmt/tree/main/pyproject-fmt
- Supported Languages
-
toml - Command
-
pyproject-fmt args-
[-] - Type
- Stdin
racketfmt
Formatter for Racket language files.
- Homepage
- https://docs.racket-lang.org/fmt
- Supported Languages
-
racket,rkt - Command
-
raco args-
[fmt] - Type
- Stdin
rubyfmt
Ruby autoformatter written in Rust.
- Homepage
- https://github.com/fables-tales/rubyfmt
- Supported Languages
-
ruby,rb - Command
-
rubyfmt args-
[] - Type
- Stdin
ruff
Python formatter via Ruff.
- Homepage
- https://docs.astral.sh/ruff/
- Supported Languages
-
python,py - Command
-
ruff args-
[format, --stdin-filename, stdin.py, -] - Type
- Stdin
rufo
Opinionated Ruby formatter.
- Homepage
- https://github.com/ruby-formatter/rufo
- Supported Languages
-
ruby,rb - Command
-
rufo args-
[] - Type
- Stdin
shfmt
Shell script formatter.
- Homepage
- https://github.com/mvdan/sh
- Supported Languages
-
sh,bash,zsh,ksh,shell - Command
-
shfmt args-
[-] - Type
- Stdin
sqlfmt
SQL formatter inspired by Black.
- Homepage
- https://sqlfmt.com
- Supported Languages
-
sql - Command
-
sqlfmt args-
[-] - Type
- Stdin
styler
R formatter via styler::style_file.
- Homepage
- https://styler.r-lib.org/
- Supported Languages
-
r - Command
-
Rscript args-
[-e, styler::style_file('{}')] - Type
- File-based
taplo
TOML formatter.
- Homepage
- https://taplo.tamasfe.dev/
- Supported Languages
-
toml - Command
-
taplo args-
[format, -] - Type
- Stdin
tclfmt
Formatter for Tcl scripts (from tclint).
- Homepage
- https://github.com/nmoroze/tclint
- Supported Languages
-
tcl - Command
-
tclfmt args-
[-] - Type
- Stdin
terraform-fmt
Terraform formatter.
- Homepage
- https://developer.hashicorp.com/terraform/cli/commands/fmt
- Supported Languages
-
terraform,hcl,tf - Command
-
terraform args-
[fmt, -no-color, -] - Type
- Stdin
tex-fmt
Fast formatter for LaTeX source files.
- Homepage
- https://github.com/WGUNDERWOOD/tex-fmt
- Supported Languages
-
tex,latex - Command
-
tex-fmt args-
[-s] - Type
- Stdin
typstyle
Formatter for Typst code.
- Homepage
- https://github.com/Enter-tainer/typstyle
- Supported Languages
-
typst - Command
-
typstyle args-
[] - Type
- Stdin
yamlfix
YAML formatter preserving comments.
- Homepage
- https://github.com/lyz-code/yamlfix
- Supported Languages
-
yaml,yml - Command
-
yamlfix args-
[-] - Type
- Stdin
yamlfmt
YAML formatter.
- Homepage
- https://github.com/google/yamlfmt
- Supported Languages
-
yaml,yml - Command
-
yamlfmt args-
[-] - Type
- Stdin
yq
YAML processor in pretty-print mode.
- Homepage
- https://github.com/mikefarah/yq
- Supported Languages
-
yaml,yml - Command
-
yq args-
[-P, -] - Type
- Stdin