-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprogram_indent_isone.xml
312 lines (312 loc) · 5.07 KB
/
program_indent_isone.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
<?xml version="1.0" encoding="UTF-8"?>
<!--DOCTYPE table PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"-->
<table frame='all'><title>Indent代码格式化说明</title>
<tgroup cols='3' align='left' colsep='1' rowsep='1'>
<thead>
<row>
<entry align="center">使用的indent参数</entry>
<entry align="center">值</entry>
<entry align="center">含义</entry>
</row>
</thead>
<tbody>
<row>
<entry>--blank-lines-after-declarations
</entry>
<entry>bad
</entry>
<entry>变量声明后加空行
</entry>
</row>
<row>
<entry>--blank-lines-after-procedures
</entry>
<entry>bap
</entry>
<entry>函数结束后加空行
</entry>
</row>
<row>
<entry>--blank-lines-before-block-comments
</entry>
<entry>bbb
</entry>
<entry>块注释前加空行
</entry>
</row>
<row>
<entry>--break-before-boolean-operator
</entry>
<entry>bbo
</entry>
<entry>较长的行,在逻辑运算符前分行
</entry>
</row>
<row>
<entry>--blank-lines-after-commas
</entry>
<entry>nbc
</entry>
<entry>变量声明中,逗号分隔的变量不分行
</entry>
</row>
<row>
<entry>--braces-after-if-line
</entry>
<entry>bl
</entry>
<entry>"if"和"{"分做两行
</entry>
</row>
<row>
<entry>--brace-indent 0
</entry>
<entry>bli0
</entry>
<entry>"{"不继续缩进
</entry>
</row>
<row>
<entry>--braces-after-struct-decl-line
</entry>
<entry>bls
</entry>
<entry>定义结构,"struct"和"{"分行
</entry>
</row>
<row>
<entry>--comment-indentationn
</entry>
<entry>c33
</entry>
<entry>语句后注释开始于行33
</entry>
</row>
<row>
<entry>--declaration-comment-columnn
</entry>
<entry>cd33
</entry>
<entry>变量声明后注释开始于行33
</entry>
</row>
<row>
<entry>--comment-delimiters-on-blank-lines
</entry>
<entry>ncdb
</entry>
<entry>不将单行注释变为块注释
</entry>
</row>
<row>
<entry>--cuddle-do-while
</entry>
<entry>ncdw
</entry>
<entry>"do --- while"的"while"和其前面的"}"另起一行
</entry>
</row>
<row>
<entry>--cuddle-else
</entry>
<entry>nce
</entry>
<entry>"else"和其前面的"}"另起一行
</entry>
</row>
<row>
<entry>--case-indentation 0
</entry>
<entry>cli0
</entry>
<entry>switch中的case语句所进0个空格
</entry>
</row>
<row>
<entry>--else-endif-columnn
</entry>
<entry>cp33
</entry>
<entry>#else, #endif后面的注释开始于行33
</entry>
</row>
<row>
<entry>--space-after-cast
</entry>
<entry>cs
</entry>
<entry>在类型转换后面加空格
</entry>
</row>
<row>
<entry>--line-comments-indentation n
</entry>
<entry>d0
</entry>
<entry>单行注释(不从1列开始的),不向左缩进
</entry>
</row>
<row>
<entry>--break-function-decl-args
</entry>
<entry>nbfda
</entry>
<entry>关闭:函数的参数一个一行
</entry>
</row>
<row>
<entry>--declaration-indentationn
</entry>
<entry>di2
</entry>
<entry>变量声明,变量开始于2行,即不必对齐
</entry>
</row>
<row>
<entry>--format-first-column-comments
</entry>
<entry>nfc1
</entry>
<entry>不格式化起于第一行的注释
</entry>
</row>
<row>
<entry>--format-all-comments
</entry>
<entry>nfca
</entry>
<entry>不开启全部格式化注释的开关
</entry>
</row>
<row>
<entry>--honour-newlines
</entry>
<entry>hnl
</entry>
<entry>Prefer to break long lines at the position of newlines in the input.
</entry>
</row>
<row>
<entry>--indent-leveln
</entry>
<entry>i4
</entry>
<entry>设置缩进多少字符,如果为tab的整数倍,用tab来缩进,否则用空格填充。
</entry>
</row>
<row>
<entry>--parameter-indentationn
</entry>
<entry>ip5
</entry>
<entry>旧风格的函数定义中参数说明缩进5个空格
</entry>
</row>
<row>
<entry>--line-length 75
</entry>
<entry>l75
</entry>
<entry>非注释行最长75
</entry>
</row>
<row>
<entry>--continue-at-parentheses
</entry>
<entry>lp
</entry>
<entry>续行从上一行出现的括号开始
</entry>
</row>
<row>
<entry>--space-after-procedure-calls
</entry>
<entry>pcs
</entry>
<entry>函数和"("之间插入一个空格
</entry>
</row>
<row>
<entry>--space-after-parentheses
</entry>
<entry>nprs
</entry>
<entry>在"("后")"前不插入空格
</entry>
</row>
<row>
<entry>--procnames-start-lines
</entry>
<entry>psl
</entry>
<entry>将函数名和返回类型放在两行定义
</entry>
</row>
<row>
<entry>--space-after-for
</entry>
<entry>saf
</entry>
<entry>for后面有空格
</entry>
</row>
<row>
<entry>--space-after-if
</entry>
<entry>sai
</entry>
<entry>if后面有空格
</entry>
</row>
<row>
<entry>--space-after-while
</entry>
<entry>saw
</entry>
<entry>while后面有空格
</entry>
</row>
<row>
<entry>--start-left-side-of-comments
</entry>
<entry>nsc
</entry>
<entry>不在生成的块注释中加*
</entry>
</row>
<row>
<entry>--swallow-optional-blank-lines
</entry>
<entry>nsob
</entry>
<entry>不去掉可添加的空行
</entry>
</row>
<row>
<entry>--space-special-semicolon
</entry>
<entry>nss
</entry>
<entry>一行的for或while语句,在";"前不加空。
</entry>
</row>
<row>
<entry>--tab-size
</entry>
<entry>ts4
</entry>
<entry>一个tab为4个空格(要能整除"-in")
</entry>
</row>
<row>
<entry>--use-tabs
</entry>
<entry>ut
</entry>
<entry>使用tab来缩进
</entry>
</row>
</tbody>
</tgroup>
</table>