CmdID

CmdID / Commands

uncrustify

C, C++, C#, D, Java, and Pawn source code formatter. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Format a single file

uncrustify -f path/to/file.cpp -o path/to/output.cppIdentify

Read filenames from stdin, and take backups before writing output back to the original filepaths

find . -name "*.cpp" | uncrustify -F - --replaceIdentify
-namefilename with wildcards toybox

Trips 1 Sigma rule: informationalFile and Directory Discovery - Linux by Daniil Yugoslavskiy, oscd.community, CheraghiMilad

Don't make backups (useful if files are under version control)

find . -name "*.cpp" | uncrustify -F - --no-backupIdentify
-namefilename with wildcards toybox

Trips 1 Sigma rule: informationalFile and Directory Discovery - Linux by Daniil Yugoslavskiy, oscd.community, CheraghiMilad

Use a custom configuration file and write the result to stdout

uncrustify -c path/to/uncrustify.cfg -f path/to/file.cppIdentify

Explicitly set a configuration variable's value

uncrustify --set option=valueIdentify

Generate a new configuration file

uncrustify --update-config -o path/to/new.cfgIdentify