uncrustify
C, C++, C#, D, Java and Pawn source code formatter. More information: <https://github.com/uncrustify/uncrustify>.
Install
- All systems
-
curl cmd.cat/uncrustify.sh
- Debian
-
apt-get install uncrustify - Ubuntu
-
apt-get install uncrustify -
Alpine
-
apk add uncrustify - Arch Linux
-
pacman -S uncrustify - Kali Linux
-
apt-get install uncrustify - Fedora
-
dnf install uncrustify - Windows (WSL2)
-
sudo apt-get updatesudo apt-get install uncrustify - OS X
-
brew install uncrustify - Raspbian
-
apt-get install uncrustify - Docker
-
docker run cmd.cat/uncrustify uncrustifypowered by Commando
C, C++, C#, D, Java and Pawn source code formatter. More information: <https://github.com/uncrustify/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 -
Use a custom configuration file and write the result to `stdout`:
uncrustify -c path/to/uncrustify.cfg -f path/to/file.cpp -
Explicitly set a configuration variable's value:
uncrustify --set option=value -
Generate a new configuration file:
uncrustify --update-config -o path/to/new.cfg
© tl;dr; authors and contributors