📄 indent.1
字号:
.TH INDENT 1L .SH "NAME"indent \- changes the appearance of a C program by inserting or deleting whitespace. .SH "SYNOPSIS".B "indent "[options] [input\-files].sp.B "indent "[options] [single\-input\-file] [\-o output\-file].sp.B "indent "\-\-version.SH "DESCRIPTION"This man page is generated from the file \fIindent.texinfo\fR.This is Edition of "The \fBindent\fR Manual",for Indent Version , last updated .The \fBindent\fR programcan be used to make code easier to read. It can also convert from onestyle of writing C to another. .B indent\fR understands a substantial amount about the syntax of C,but it also attempts to cope with incomplete and misformed syntax.In version 1.2 and more recent versions, the GNU style of indenting isthe default..SH "OPTIONS".TP 4.B -bad\fR, \fB--blank-lines-after-declarations\fRForce blank lines after the declarations..brSee \fB\ BLANK\ LINES\fR..TP.B -bap\fR, \fB--blank-lines-after-procedures\fRForce blank lines after procedure bodies..brSee \fB\ BLANK\ LINES\fR..TP.B -bbb\fR, \fB--blank-lines-before-block-comments\fRForce blank lines before block comments..brSee \fB\ BLANK\ LINES\fR..TP.B -bbo\fR, \fB--break-before-boolean-operator\fRPrefer to break long lines before boolean operators..brSee \fB\ BREAKING\ LONG\ LINES\fR..TP.B -bc\fR, \fB--blank-lines-after-commas\fRForce newline after comma in declaration..brSee \fB\ DECLARATIONS\fR..TP.B -bl\fR, \fB--braces-after-if-line\fRPut braces on line after \fBif\fR, etc..brSee \fB\ STATEMENTS\fR..TP.B -bli\fIn\fB\fR, \fB--brace-indent\fIn\fB\fRIndent braces \fIn\fR spaces..brSee \fB\ STATEMENTS\fR..TP.B -bls\fR, \fB--braces-after-struct-decl-line\fRPut braces on the line after \fBstruct\fR declaration lines..brSee \fB\ DECLARATIONS\fR..TP.B -br\fR, \fB--braces-on-if-line\fRPut braces on line with \fBif\fR, etc..brSee \fB\ STATEMENTS\fR..TP.B -brs\fR, \fB--braces-on-struct-decl-line\fRPut braces on \fBstruct\fR declaration line..brSee \fB\ DECLARATIONS\fR..TP.B -bs\fR, \fB--Bill-Shannon\fR, \fB--blank-before-sizeof\fRPut a space between \fBsizeof\fR and its argument..brSee \fB\ STATEMENTS\fR..TP.B -c\fIn\fB\fR, \fB--comment-indentation\fIn\fB\fRPut comments to the right of code in column \fIn\fR..brSee \fB\ COMMENTS\fR..TP.B -cbi\fIn\fB\fR, \fB--case-brace-indentation\fIn\fB\fRIndent braces after a case label N spaces..brSee \fB\ STATEMENTS\fR..TP.B -cd\fIn\fB\fR, \fB--declaration-comment-column\fIn\fB\fRPut comments to the right of the declarations in column \fIn\fR..brSee \fB\ COMMENTS\fR..TP.B -cdb\fR, \fB--comment-delimiters-on-blank-lines\fRPut comment delimiters on blank lines..brSee \fB\ COMMENTS\fR..TP.B -cdw\fR, \fB--cuddle-do-while\fRCuddle while of \fBdo {} while;\fR and preceeding \`}\'..brSee \fB\ COMMENTS\fR..TP.B -ce\fR, \fB--cuddle-else\fRCuddle else and preceeding \`}\'..brSee \fB\ COMMENTS\fR..TP.B -ci\fIn\fB\fR, \fB--continuation-indentation\fIn\fB\fRContinuation indent of \fIn\fR spaces..brSee \fB\ STATEMENTS\fR..TP.B -cli\fIn\fB\fR, \fB--case-indentation\fIn\fB\fRCase label indent of \fIn\fR spaces..brSee \fB\ STATEMENTS\fR..TP.B -cp\fIn\fB\fR, \fB--else-endif-column\fIn\fB\fRPut comments to the right of \fB#else\fR and \fB#endif\fR statements in column \fIn\fR..brSee \fB\ COMMENTS\fR..TP.B -cs\fR, \fB--space-after-cast\fRPut a space after a cast operator..brSee \fB\ STATEMENTS\fR..TP.B -d\fIn\fB\fR, \fB--line-comments-indentation\fIn\fB\fRSet indentation of comments not to the right of code to \fIn\fR spaces..brSee \fB\ COMMENTS\fR..TP.B -bfda\fR, \fB--break-function-decl-args\fRBreak the line before all arguments in a declaration..brSee \fB\ DECLARATIONS\fR..TP.B -bfde\fR, \fB--break-function-decl-args\fRBreak the line after the last argument in a declaration..brSee \fB\ DECLARATIONS\fR..TP.B -di\fIn\fB\fR, \fB--declaration-indentation\fIn\fB\fRPut variables in column \fIn\fR..brSee \fB\ DECLARATIONS\fR..TP.B -fc1\fR, \fB--format-first-column-comments\fRFormat comments in the first column..brSee \fB\ COMMENTS\fR..TP.B -fca\fR, \fB--format-all-comments\fRDo not disable all formatting of comments..brSee \fB\ COMMENTS\fR..TP.B -gnu\fR, \fB--gnu-style\fRUse GNU coding style. This is the default..brSee \fB\ COMMON\ STYLES\fR..TP.B -hnl\fR, \fB--honour-newlines\fRPrefer to break long lines at the position of newlines in the input..brSee \fB\ BREAKING\ LONG\ LINES\fR..TP.B -i\fIn\fB\fR, \fB--indent-level\fIn\fB\fRSet indentation level to \fIn\fR spaces..brSee \fB\ INDENTATION\fR..TP.B -ip\fIn\fB\fR, \fB--parameter-indentation\fIn\fB\fRIndent parameter types in old-style function definitions by \fIn\fR spaces..brSee \fB\ INDENTATION\fR..TP.B -kr\fR, \fB--k-and-r-style\fRUse Kernighan & Ritchie coding style..brSee \fB\ COMMON\ STYLES\fR..TP.B -l\fIn\fB\fR, \fB--line-length\fIn\fB\fRSet maximum line length for non-comment lines to \fIn\fR..brSee \fB\ BREAKING\ LONG\ LINES\fR..TP.B -lc\fIn\fB\fR, \fB--comment-line-length\fIn\fB\fRSet maximum line length for comment formatting to \fIn\fR..brSee \fB\ COMMENTS\fR..TP.B -lp\fR, \fB--continue-at-parentheses\fRLine up continued lines at parentheses..brSee \fB\ INDENTATION\fR..TP.B -lps\fR, \fB--leave-preprocessor-space\fRLeave space between \`#\' and preprocessor directive..brSee \fB\ INDENTATION\fR..TP.B -nbad\fR, \fB--no-blank-lines-after-declarations\fRDo not force blank lines after declarations..brSee \fB\ BLANK\ LINES\fR..TP.B -nbap\fR, \fB--no-blank-lines-after-procedures\fRDo not force blank lines after procedure bodies..brSee \fB\ BLANK\ LINES\fR..TP.B -nbbo\fR, \fB--break-after-boolean-operator\fRDo not prefer to break long lines before boolean operators..brSee \fB\ BREAKING\ LONG\ LINES\fR..TP.B -nbc\fR, \fB--no-blank-lines-after-commas\fRDo not force newlines after commas in declarations..brSee \fB\ DECLARATIONS\fR..TP.B -nbfda\fR, \fB--dont-break-function-decl-args\fRDon\'t put each argument in a function declaration on a seperate line..brSee \fB\ DECLARATIONS\fR..TP.B -ncdb\fR, \fB--no-comment-delimiters-on-blank-lines\fRDo not put comment delimiters on blank lines..brSee \fB\ COMMENTS\fR..TP.B -ncdw\fR, \fB--dont-cuddle-do-while\fRDo not cuddle \fB}\fR and the \fBwhile\fR of a \fBdo {} while;\fR..brSee \fB\ STATEMENTS\fR..TP.B -nce\fR, \fB--dont-cuddle-else\fRDo not cuddle \fB}\fR and \fBelse\fR..brSee \fB\ STATEMENTS\fR..TP.B -ncs\fR, \fB--no-space-after-casts\fRDo not put a space after cast operators..brSee \fB\ STATEMENTS\fR..TP.B -nfc1\fR, \fB--dont-format-first-column-comments\fRDo not format comments in the first column as normal..brSee \fB\ COMMENTS\fR..TP.B -nfca\fR, \fB--dont-format-comments\fRDo not format any comments..brSee \fB\ COMMENTS\fR..TP.B -nhnl\fR, \fB--ignore-newlines\fRDo not prefer to break long lines at the position of newlines in the input..brSee \fB\ BREAKING\ LONG\ LINES\fR..TP.B -nip\fR, \fB--no-parameter-indentation\fRZero width indentation for parameters..brSee \fB\ INDENTATION\fR..TP.B -nlp\fR, \fB--dont-line-up-parentheses\fRDo not line up parentheses..brSee \fB\ STATEMENTS\fR..TP.B -npcs\fR, \fB--no-space-after-function-call-names\fRDo not put space after the function in function calls..brSee \fB\ STATEMENTS\fR..TP.B -nprs\fR, \fB--no-space-after-parentheses\fRDo not put a space after every \'(\' and before every \')\'..brSee \fB\ STATEMENTS\fR..TP.B -npsl\fR, \fB--dont-break-procedure-type\fRPut the type of a procedure on the same line as its name..brSee \fB\ DECLARATIONS\fR..TP.B -nsaf\fR, \fB--no-space-after-for\fRDo not put a space after every \fBfor\fR..brSee \fB\ STATEMENTS\fR..TP.B -nsai\fR, \fB--no-space-after-if\fRDo not put a space after every \fBif\fR..brSee \fB\ STATEMENTS\fR..TP.B -nsaw\fR, \fB--no-space-after-while\fRDo not put a space after every \fBwhile\fR..brSee \fB\ STATEMENTS\fR..TP.B -nsc\fR, \fB--dont-star-comments\fRDo not put the \`*\' character at the left of comments..brSee \fB\ COMMENTS\fR..TP.B -nsob\fR, \fB--leave-optional-blank-lines\fRDo not swallow optional blank lines..brSee \fB\ BLANK\ LINES\fR..TP.B -nss\fR, \fB--dont-space-special-semicolon\fRDo not force a space before the semicolon after certain statements.Disables \`-ss\'..brSee \fB\ STATEMENTS\fR..TP.B -nut\fR, \fB--no-tabs\fRUse spaces instead of tabs..brSee \fB\ INDENTATION\fR..TP.B -nv\fR, \fB--no-verbosity\fRDisable verbose mode..brSee \fB\ MISCELLANEOUS\ OPTIONS\fR..TP.B -orig\fR, \fB--original\fRUse the original Berkeley coding style..brSee \fB\ COMMON\ STYLES\fR..TP.B -npro\fR, \fB--ignore-profile\fRDo not read \`.indent.pro\' files..brSee \fB\ INVOKING\ INDENT\fR..TP.B -pcs\fR, \fB--space-after-procedure-calls\fRInsert a space between the name of the procedure being called and the \`(\'..brSee \fB\ STATEMENTS\fR..TP.B -pi\fIn\fB\fR, \fB--paren-indentation\fIn\fB\fRSpecify the extra indentation per open parentheses \'(\' when astatement is broken.See \fB\ STATEMENTS\fR..TP.B -pmt\fR, \fB--preserve-mtime\fRPreserve access and modification times on output files.See \fB\ MISCELLANEOUS\ OPTIONS\fR..TP.B -prs\fR, \fB--space-after-parentheses\fRPut a space after every \'(\' and before every \')\'..brSee \fB\ STATEMENTS\fR..TP.B -psl\fR, \fB--procnames-start-lines\fRPut the type of a procedure on the line before its name..brSee \fB\ DECLARATIONS\fR..TP.B -saf\fR, \fB--space-after-for\fRPut a space after each \fBfor\fR..brSee \fB\ STATEMENTS\fR..TP.B -sai\fR, \fB--space-after-if\fRPut a space after each \fBif\fR..brSee \fB\ STATEMENTS\fR..TP.B -saw\fR, \fB--space-after-while\fRPut a space after each \fBwhile\fR..brSee \fB\ STATEMENTS\fR..TP.B -sbi\fIn\fB\fR, \fB--struct-brace-indentation\fIn\fB\fRIndent braces of a struct, union or enum N spaces..brSee \fB\ STATEMENTS\fR..TP.B -sc\fR, \fB--start-left-side-of-comments\fRPut the \`*\' character at the left of comments..brSee \fB\ COMMENTS\fR..TP.B -sob\fR, \fB--swallow-optional-blank-lines\fRSwallow optional blank lines..brSee \fB\ BLANK\ LINES\fR..TP.B -ss\fR, \fB--space-special-semicolon\fROn one-line \fBfor\fR and \fBwhile\fR statments, force a blank before the semicolon..brSee \fB\ STATEMENTS\fR..TP.B -st\fR, \fB--standard-output\fRWrite to standard output..brSee \fB\ INVOKING\ INDENT\fR..TP.B -T\fRTell \fBindent\fR the name of typenames..brSee \fB\ DECLARATIONS\fR..TP.B -ts\fIn\fB\fR, \fB--tab-size\fIn\fB\fRSet tab size to \fIn\fR spaces..brSee \fB\ INDENTATION\fR..TP.B -ut\fR, \fB--use-tabs\fRUse tabs. This is the default..brSee \fB\ INDENTATION\fR..TP.B -v\fR, \fB--verbose\fREnable verbose mode..brSee \fB\ MISCELLANEOUS\ OPTIONS\fR..TP.B -version\fROutput the version number of \fBindent\fR..brSee \fB\ MISCELLANEOUS\ OPTIONS\fR.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -