Developer(s) FSF Written in C | Development status Inactive? Operating system | |
Original author(s) Stable release 2.2.10 / March 11, 2008; 8 years ago (2008-03-11) |
indent is a Unix utility that reformats C and C++ code in a user-defined indent style and coding style. Support for C++ code is considered experimental.
Contents
Examples of usage
The command line
indent -st -bap -bli0 -i4 -l79 -ncs -npcs -npsl -fca -lc79 -fc1 -ts4 SomeFile.cindents SomeFile.c
in a style resembling BSD/Allman style and writes the result to the standard output.
GNU indent
GNU indent is the GNU Project's version of indent. A different indent style, the GNU style, is used by default.
GUI
References
Indent (Unix) Wikipedia(Text) CC BY-SA