[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

A. 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-before-block-comments

Force blank lines before block comments.
See section Blank lines.

-bbo
--break-before-boolean-operator

Prefer to break long lines before boolean operators.
See section Breaking long 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.

-blf
--braces-after-func-def-line

Put braces on line following function definition line.
See section Declarations.

-blin
--brace-indentn

Indent braces n spaces.
See section Statements.

-bls
--braces-after-struct-decl-line

Put braces on the line after struct declaration lines.
See section Declarations.

-br
--braces-on-if-line

Put braces on line with if, etc.
See section Statements.

-brf
--braces-on-func-def-line

Put braces on function definition line.
See section Declarations.

-brs
--braces-on-struct-decl-line

Put braces on struct declaration line.
See section Declarations.

-bs
--Bill-Shannon
--blank-before-sizeof

Put a space between sizeof and its argument.
See section Statements.

-cn
--comment-indentationn

Put comments to the right of code in column n.
See section Comments.

-cbin
--case-brace-indentationn

Indent braces after a case label N spaces.
See section Statements.

-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.

-cdw
--cuddle-do-while

Cuddle while of do {} while; and preceding ‘}’.
See section Comments.

-ce
--cuddle-else

Cuddle else and preceding ‘}’.
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.

-dn
--line-comments-indentationn

Set indentation of comments not to the right of code to n spaces.
See section Comments.

-bfda
--break-function-decl-args

Break the line before all arguments in a declaration.
See section Declarations.

-bfde
--break-function-decl-args-end

Break the line after the last argument in a declaration.
See section Declarations.

-djn
--left-justify-declarations

If -cd 0 is used then comments after declarations are left justified behind the declaration.
See section Declarations.

-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.

-hnl
--honour-newlines

Prefer to break long lines at the position of newlines in the input.
See section Breaking long lines.

-in
--indent-leveln

Set indentation level to n spaces.
See section Indentation.

-iln
--indent-labeln

Set offset for labels to column n.
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 for non-comment lines to n.
See section Breaking long lines.

-lcn
--comment-line-lengthn

Set maximum line length for comment formatting to n.
See section Comments.

-linux
--linux-style

Use Linux coding style.
See section Common styles.

-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.

-nbbo
--break-after-boolean-operator

Do not prefer to break long lines before boolean operators.
See section Breaking long lines.

-nbc
--no-blank-lines-after-commas

Do not force newlines after commas in declarations.
See section Declarations.

-nbfda
--dont-break-function-decl-args

Don't put each argument in a function declaration on a separate line.
See section Declarations.

-ncdb
--no-comment-delimiters-on-blank-lines

Do not put comment delimiters on blank lines.
See section Comments.

-ncdw
--dont-cuddle-do-while

Do not cuddle } and the while of a do {} while;.
See section Statements.

-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.

-ndjn
--dont-left-justify-declarations

Comments after declarations are treated the same as comments after other statements.
See section Declarations.

-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.

-nhnl
--ignore-newlines

Do not prefer to break long lines at the position of newlines in the input.
See section Breaking long lines.

-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.

-nprs
--no-space-after-parentheses

Do not put a space after every '(' and before every ')'.
See section Statements.

-npsl
--dont-break-procedure-type

Put the type of a procedure on the same line as its name.
See section Declarations.

-nsaf
--no-space-after-for

Do not put a space after every for.
See section Statements.

-nsai
--no-space-after-if

Do not put a space after every if.
See section Statements.

-nsaw
--no-space-after-while

Do not put a space after every while.
See section Statements.

-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.

-nut
--no-tabs

Use spaces instead of tabs.
See section Indentation.

-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.

-pin
--paren-indentationn

Specify the extra indentation per open parentheses '(' when a statement is broken. See section Statements.

-pmt
--preserve-mtime

Preserve access and modification times on output files. See section Miscellaneous options.

-ppin
--preprocessor-indentationn

Specify the indentation for preprocessor conditional statements. See section Indentation.

-prs
--space-after-parentheses

Put a space after every '(' and before every ')'.
See section Statements.

-psl
--procnames-start-lines

Put the type of a procedure on the line before its name.
See section Declarations.

-saf
--space-after-for

Put a space after each for.
See section Statements.

-sai
--space-after-if

Put a space after each if.
See section Statements.

-saw
--space-after-while

Put a space after each while.
See section Statements.

-sbin
--struct-brace-indentationn

Indent braces of a struct, union or enum N spaces.
See section Statements.

-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 statements, 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.

-ut
--use-tabs

Use tabs. This is the default.
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.

 
--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            
--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            
--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             
--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              

[ << ] [ >> ]           [Top] [Contents] [Index] [ ? ]

This document was generated by david on December, 15 2008 using texi2html 1.78.