Next: Index, Previous: Indent Program, Up: Top [Contents][Index]
Here is a list of all the options for indent
, alphabetized by
short option. It is followed by a cross key alphabetized by long option.
If using tabs for indentation, use spaces for alignment.
See Indentation.
Force blank lines after the declarations.
See Blank lines.
Force blank lines after procedure bodies.
See Blank lines.
Force blank lines before block comments.
See Blank lines.
Prefer to break long lines before boolean operators.
See Breaking long lines.
Force newline after comma in declaration.
See Declarations.
Put braces on line after if
, etc.
See Statements.
Put braces on line following function definition line.
See Declarations.
Indent braces n spaces.
See Statements.
Put braces on the line after struct
declaration lines.
See Declarations.
Put braces on line with if
, etc.
See Statements.
Put braces on function definition line.
See Declarations.
Put braces on struct
declaration line.
See Declarations.
Put a space between sizeof
and its argument.
See Statements.
Put comments to the right of code in column n.
See Comments.
Indent braces after a case label N spaces.
See Statements.
Put comments to the right of the declarations in column n.
See Comments.
Put comment delimiters on blank lines.
See Comments.
Cuddle while of do {} while;
and preceding ‘}’.
See Comments.
Cuddle else and preceding ‘}’.
See Comments.
Continuation indent of n spaces.
See Statements.
Case label indent of n spaces.
See Statements.
Put comments to the right of #else
and
#endif
statements in column n.
See Comments.
Put a space after a cast operator.
See Statements.
Set indentation of comments not to the right
of code to n spaces.
See Comments.
Break the line before all arguments in a declaration.
See Declarations.
Break the line after the last argument in a declaration.
See Declarations.
If -cd 0 is used then comments after declarations are left justified
behind the declaration.
See Declarations.
Put variables in column n.
See Declarations.
Format comments in the first column.
See Comments.
Do not disable all formatting of comments.
See Comments.
Fix nested comments.
See Comments.
Use GNU coding style. This is the default.
See Common styles.
Treat gettext _("...")
and N_("...")
as strings rather than as functions.
See Breaking long lines.
Prefer to break long lines at the position of newlines in the input.
See Breaking long lines.
Set indentation level to n spaces.
See Indentation.
Set offset for labels to column n.
See Indentation.
Indent parameter types in old-style function
definitions by n spaces.
See Indentation.
Use Kernighan & Ritchie coding style.
See Common styles.
Set maximum line length for non-comment lines to n.
See Breaking long lines.
Set maximum line length for comment formatting to n.
See Comments.
Use Linux coding style.
See Common styles.
Line up continued lines at parentheses.
See Indentation.
Leave space between ‘#’ and preprocessor directive.
See Indentation.
Remove space between ‘#’ and preprocessor directive.
See Indentation.
Do not force blank lines after declarations.
See Blank lines.
Do not force blank lines after procedure bodies.
See Blank lines.
Do not prefer to break long lines before boolean operators.
See Breaking long lines.
Do not force newlines after commas in declarations.
See Declarations.
Don’t put each argument in a function declaration on a separate line.
See Declarations.
Do not put comment delimiters on blank lines.
See Comments.
Do not cuddle }
and the while
of a do {} while;
.
See Statements.
Do not cuddle }
and else
.
See Statements.
Do not put a space after cast operators.
See Statements.
Comments after declarations are treated the same as
comments after other statements.
See Declarations.
Do not format comments in the first column as normal.
See Comments.
Do not format any comments.
See Comments.
Treat gettext _("...")
and N_("...")
as normal functions. This is the default.
See Breaking long lines.
Do not prefer to break long lines at the position of newlines in the input.
See Breaking long lines.
Zero width indentation for parameters.
See Indentation.
Do not line up parentheses.
See Statements.
Do not put space after the function in function calls.
See Statements.
Do not put a space after every ’(’ and before every ’)’.
See Statements.
Put the type of a procedure on the same line as its name.
See Declarations.
Do not put a space after every for
.
See Statements.
Do not put a space after every if
.
See Statements.
Do not put a space after every while
.
See Statements.
Do not put the ‘*’ character at the left of comments.
See Comments.
Do not swallow optional blank lines.
See Blank lines.
Do not force a space before the semicolon after certain statements.
Disables -ss.
See Statements.
Do not pad comments out to the nearest tabstop.
See Comments.
Use spaces instead of tabs.
See Indentation.
Disable verbose mode.
See Miscellaneous options.
Use the original Berkeley coding style.
See Common styles.
Do not read .indent.pro files.
See Invoking indent.
Put asterisks in pointer declarations on the left of spaces, next to types: “char* p”.
Put asterisks in pointer declarations on the right of spaces, next to variable names: “char *p”. This is the default behavior.
Insert a space between the name of the
procedure being called and the ‘(’.
See Statements.
Specify the extra indentation per open parentheses ’(’ when a statement is broken. See Statements.
Preserve access and modification times on output files. See Miscellaneous options.
Specify the indentation for preprocessor conditional statements. See Indentation.
Put a space after every ’(’ and before every ’)’.
See Statements.
Put the type of a procedure on the line before its name.
See Declarations.
Put a space after each for
.
See Statements.
Put a space after each if
.
See Statements.
Put a space after the ‘{’ and before the ‘}’ in initializers.
See Declarations.
Put a space after each while
.
See Statements.
Indent braces of a struct, union or enum N spaces.
See Statements.
Put the ‘*’ character at the left of comments.
See Comments.
Allow for unbraced conditionals (if
, else
, etc.) to have
their inner statement on the same line.
See Statements.
Swallow optional blank lines.
See Blank lines.
On one-line for
and while
statements,
force a blank before the semicolon.
See Statements.
Write to standard output.
See Invoking indent.
Tell indent
the name of typenames.
See Declarations.
Set tab size to n spaces.
See Indentation.
Use tabs. This is the default.
See Indentation.
Enable verbose mode.
See Miscellaneous options.
Output the version number of indent
.
See Miscellaneous options.
Here is a list of options alphabetized by long option, to help you find the corresponding short option.
--align-with-spaces -as --blank-lines-after-commas -bc --blank-lines-after-declarations -bad --blank-lines-after-procedures -bap --blank-lines-before-block-comments -bbb --braces-after-if-line -bl --braces-after-func-def-line -blf --brace-indent -bli --braces-after-struct-decl-line -bls --braces-on-if-line -br --braces-on-func-def-line -brf --braces-on-struct-decl-line -brs --break-after-boolean-operator -nbbo --break-before-boolean-operator -bbo --break-function-decl-args -bfda --break-function-decl-args-end -bfde --case-indentation -clin --case-brace-indentation -cbin --comment-delimiters-on-blank-lines -cdb --comment-indentation -cn --continuation-indentation -cin --continue-at-parentheses -lp --cuddle-do-while -cdw --cuddle-else -ce --declaration-comment-column -cdn --declaration-indentation -din --dont-break-function-decl-args -nbfda --dont-break-function-decl-args-end -nbfde --dont-break-procedure-type -npsl --dont-cuddle-do-while -ncdw --dont-cuddle-else -nce --dont-format-comments -nfca --dont-format-first-column-comments -nfc1 --dont-line-up-parentheses -nlp --dont-left-justify-declarations -ndj --dont-space-special-semicolon -nss --dont-star-comments -nsc --dont-tab-align-comments -ntac --else-endif-column -cpn --format-all-comments -fca --format-first-column-comments -fc1 --gnu-style -gnu --honour-newlines -hnl --ignore-newlines -nhnl --ignore-profile -npro --indent-label -iln --indent-level -in --k-and-r-style -kr --leave-optional-blank-lines -nsob --leave-preprocessor-space -lps --left-justify-declarations -dj --line-comments-indentation -dn --line-length -ln --linux-style -linux --no-blank-lines-after-commas -nbc --no-blank-lines-after-declarations -nbad --no-blank-lines-after-procedures -nbap --no-blank-lines-before-block-comments -nbbb --no-comment-delimiters-on-blank-lines -ncdb --no-space-after-casts -ncs --no-parameter-indentation -nip --no-space-after-for -nsaf --no-space-after-function-call-names -npcs --no-space-after-if -nsai --no-space-after-parentheses -nprs --no-space-after-while -nsaw --no-tabs -nut --no-verbosity -nv --original -orig --parameter-indentation -ipn --paren-indentation -pin --preserve-mtime -pmt --preprocessor-indentation -ppin --procnames-start-lines -psl --remove-preprocessor-space -nlps --single-line-conditionals -slc --space-after-cast -cs --space-after-for -saf --space-after-if -sai --space-after-parentheses -prs --space-after-procedure-calls -pcs --space-after-while -saw --space-special-semicolon -ss --spaces-around-initializers -sar --standard-output -st --start-left-side-of-comments -sc --struct-brace-indentation -sbin --swallow-optional-blank-lines -sob --tab-size -tsn --use-tabs -ut --verbose -v
Next: Index, Previous: Indent Program, Up: Top [Contents][Index]