indent Command Examples

Change the appearance of a C/C++ program by inserting or deleting whitespace. More information: https://www.gnu.org/software/indent/manual/indent/Option-Summary.html.

indent {{[-linux|--linux-style]}} {{path/to/source.c}} {{path/to/another_source.c}}

indent {{[-gnu|--gnu-style]}} {{path/to/source.c}} -o {{path/to/indented_source.c}}

indent {{[-kr|--k-and-r-style]}} {{[-il|--indent-level]}}3 {{[-nut|--no-tabs]}} {{[-l|--line-length]}}120 {{path/to/source.c}} -o {{path/to/indented_source.c}}