Command-line tool
clang-format
brew/clang-format
Checked 25 Oct 2026, 21:09 UTC · Listing refreshed from Homebrew, winget, npm, Scoop and cargo; npm packages checked against OSV.dev
Formatting tools for C, C++, Obj-C, Java, JavaScript, TypeScript cpp compiler fortran c++ gcc assembly assembler binutils c gdb gfortran make
At a glance
- Type
- Command-line tool
- Install on
- Windows, macOS, Linux
- Last checked
- 25 Oct 2026, 21:09 UTC
Install it
Windows
winget install --id BrechtSanders.WinLibs.POSIX.MSVCRT.LLVM -e
macOS
brew install clang-format
Linux
brew install clang-format
Format a file and print the result to `stdout`
clang-format path/to/file
Format a file in-place
clang-format -i path/to/file
Format a file using a predefined coding style
clang-format --style LLVM path/to/file
Related command-line tools
- oxfmt
High-performance formatting tool for JavaScript and TypeScript typescript javascript formatter - typescript
Language for application scale JavaScript development - @typescript/native-preview
Preview CLI and JS API for the native TypeScript compiler port typescript microsoft compiler language javascript tsgo - oxlint
High-performance linter for JavaScript and TypeScript written in Rust typescript javascript transpiler compiler linter… - LLVM MinGW (UCRT runtime)
LLVM MinGW (UCRT runtime) (Windows package; no description in the winget index) cpp compiler c++ gcc binutils c make… - swc
Super-fast Rust-based JavaScript/TypeScript compiler - opencoarrays
Open-source coarray Fortran ABI, API, and compiler wrapper - @microsoft/jsts-upgrade-assistant
AI-powered tool for automatically upgrading npm packages in TypeScript projects and resolving compiler errors…
Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents