Command-line tool
astyle
brew/astyle
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 for C, C++, C#, and Java
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 astyle
macOS
brew install astyle
Linux
brew install astyle
Apply the default style of 4 spaces per indent and no formatting changes
astyle source_file
Apply the Java style with attached braces
astyle -A2 path/to/file
Apply the allman style with broken braces
astyle -A1 path/to/file
Related command-line tools
- uncrustify
Source code beautifier - google-java-format
Reformats Java source code to comply with Google Java Style - pmd
Source code analyzer for Java, JavaScript, and more - jbang
Tool to create, edit and run self-contained source-only Java programs - jadx
Dex to Java decompiler android dex java decompiler - terraform-graph-beautifier
CLI to beautify `terraform graph` output - bcpp
C(++) beautifier - beautysh
Bash beautifier
Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents