Go to the first, previous, next, last section, table of contents.

Option Summary

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.

`-bad'
`--blank-lines-after-declarations'
Force blank lines after the declarations.
See section Blank lines.
`-bap'
`--blank-lines-after-procedures'
Force blank lines after procedure bodies.
See section Blank lines.
`-bbb'
`--blank-lines-after-block-comments'
Force blank lines after block comments.
See section Blank lines.
`-bc'
`--blank-lines-after-commas'
Force newline after comma in declaration.
See section Declarations.
`-bl'
`--braces-after-if-line'
Put braces on line after if, etc.
See section Statements.
`-blin'
`--brace-indentn'
Indent braces n spaces.
See section Statements.
`-br'
`--braces-on-if-line'
Put braces on line with if, etc. and structure declarations
See section Statements.
`-cn'
`--comment-indentationn'
Put comments to the right of code in column n.
See section Comments.
`-cdn'
`--declaration-comment-columnn'
Put comments to the right of the declarations in column n.
See section Comments.
`-cdb'
`--comment-delimiters-on-blank-lines'
Put comment delimiters on blank lines.
See section Comments.
`-ce'
`--cuddle-else'
Cuddle else and preceeding `}'.
See section Comments.
`-cin'
`--continuation-indentationn'
Continuation indent of n spaces.
See section Statements.
`-clin'
`--case-indentationn'
Case label indent of n spaces.
See section Statements.
`-cpn'
`--else-endif-columnn'
Put comments to the right of `#else' and `#endif' statements in column n.
See section Comments.
`-cs'
`--space-after-cast'
Put a space after a cast operator.
See section Statements.
`-bs'
`--blank-before-sizeof'
Put a space between sizeof and its argument.
See section Statements
`-dn'
`--line-comments-indentationn'
Set indentation of comments not to the right of code to n spaces.
See section Comments.
`-din'
`--declaration-indentationn'
Put variables in column n.
See section Declarations.
`-fc1'
`--format-first-column-comments'
Format comments in the first column.
See section Comments.
`-fca'
`--format-all-comments'
Do not disable all formatting of comments.
See section Comments
`-gnu'
`--gnu-style'
Use GNU coding style. This is the default.
See section Common styles.
`-in'
`--indent-leveln'
Set indentation level to n spaces.
See section Indentation.
`-ipn'
`--parameter-indentationn'
Indent parameter types in old-style function definitions by n spaces.
See section Indentation.
`-kr'
`--k-and-r-style'
Use Kernighan & Ritchie coding style.
See section Common styles.
`-ln'
`--line-lengthn'
Set maximum line length to n.
See section Comments.
`-lcn'
`--comment-line-lengthn'
Set maximum line length for comment formatting to n.
See section Comments.
`-lp'
`--continue-at-parentheses'
Line up continued lines at parentheses.
See section Indentation.
`-lps'
`--leave-preprocessor-space'
Leave space between `#' and preprocessor directive. See section Indentation.
`-nbad'
`--no-blank-lines-after-declarations'
Do not force blank lines after declarations.
See section Blank lines.
`-nbap'
`--no-blank-lines-after-procedures'
Do not force blank lines after procedure bodies.
See section Blank lines.
`-nbc'
`--no-blank-lines-after-commas'
Do not force newlines after commas in declarations.
See section Declarations.
`-ncdb'
`--no-comment-delimiters-on-blank-lines'
Do not put comment delimiters on blank lines.
See section Comments.
`-nce'
`--dont-cuddle-else'
Do not cuddle } and else.
See section Statements.
`-ncs'
`--no-space-after-casts'
Do not put a space after cast operators.
See section Statements.
`-nfc1'
`--dont-format-first-column-comments'
Do not format comments in the first column as normal.
See section Comments.
`-nfca'
`--dont-format-comments'
Do not format any comments.
See section Comments.
`-nip'
`--no-parameter-indentation'
Zero width indentation for parameters.
See section Indentation
`-nlp'
`--dont-line-up-parentheses'
Do not line up parentheses.
See section Statements.
`-npcs'
`--no-space-after-function-call-names'
Do not put space after the function in function calls.
See section Statements.
`-npsl'
`--dont-break-procedure-type'
Put the type of a procedure on the same line as its name.
See section Declarations.
`-nsc'
`--dont-star-comments'
Do not put the `*' character at the left of comments.
See section Comments.
`-nsob'
`--leave-optional-blank-lines'
Do not swallow optional blank lines.
See section Blank lines.
`-nss'
`--dont-space-special-semicolon'
Do not force a space before the semicolon after certain statements. Disables `-ss'.
See section Statements.
`-nv'
`--no-verbosity'
Disable verbose mode. See section Miscellaneous options.
`-orig'
`--original'
Use the original Berkeley coding style.
See section Common styles.
`-npro'
`--ignore-profile'
Do not read `.indent.pro' files.
See section Invoking indent.
`-pcs'
`--space-after-procedure-calls'
Insert a space between the name of the procedure being called and the `('.
See section Statements.
`-psl'
`--procnames-start-lines'
Put the type of a procedure on the line before its name.
See section Declarations.
`-sc'
`--start-left-side-of-comments'
Put the `*' character at the left of comments.
See section Comments.
`-sob'
`--swallow-optional-blank-lines'
Swallow optional blank lines.
See section Blank lines.
`-ss'
`--space-special-semicolon'
On one-line for and while statments, force a blank before the semicolon.
See section Statements.
`-st'
`--standard-output'
Write to standard output.
See section Invoking indent.
`-T'
Tell indent the name of typenames.
See section Declarations.
`-tsn'
`--tab-sizen'
Set tab size to n spaces.
See section Indentation.
`-v'
`--verbose'
Enable verbose mode.
See section Miscellaneous options.
`-version'
Output the version number of indent.
See section Miscellaneous options.

Options' Cross Key

Here is a list of options alphabetized by long option, to help you find the corresponding short option.


Go to the first, previous, next, last section, table of contents.