indent Command Examples

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

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

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

indent --k-and-r-style --indent-level3 --no-tabs --line-length120 {{path/to/source.c}} -o {{path/to/indented_source.c}}