indent (Unix)

indent is a Unix utility that reformats C and C++ code in a user-defined indentation style and coding style.

[3] The original version of indent was written by David Willcox at the University of Illinois in November 1976.

[4] GNU indent was first written by Jim Kingdon in 1989.

The command is available as a separate package for Microsoft Windows as part of the UnxUtils collection of native Win32 ports of common GNU Unix-like utilities.

[5] The following command indents some_file.c in a style resembling BSD/Allman style and writes the result to the standard output.