Command-line tool
uncrustify
brew/uncrustify
Checked 25 Oct 2026, 21:09 UTC · Listing refreshed from Homebrew, winget, npm, Scoop and cargo; npm packages checked against OSV.dev
Source code beautifier
At a glance
- Type
- Command-line tool
- Install on
- Windows, macOS, Linux
- Last checked
- 25 Oct 2026, 21:09 UTC
Install it
Windows
scoop install uncrustify
macOS
brew install uncrustify
Linux
brew install uncrustify
Format a single file
uncrustify -f path/to/file.cpp -o path/to/output.cpp
Read filenames from `stdin`, and take backups before writing output back to the original filepaths
find . -name "*.cpp" | uncrustify -F - --replace
Don't make backups (useful if files are under version control)
find . -name "*.cpp" | uncrustify -F - --no-backup
Related command-line tools
- astyle
Source code beautifier for C, C++, C#, and Java - terraform-graph-beautifier
CLI to beautify `terraform graph` output - bcpp
C(++) beautifier - beautysh
Bash beautifier - pgformatter
PostgreSQL syntax beautifier - jsbeautifier
JavaScript unobfuscator and beautifier - xcbeautify
Little beautifier tool for xcodebuild - xq
Command-line XML and HTML beautifier and content extractor
Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents