热门问题
时间线
聊天
视角

Indent (UNIX)

来自维基百科,自由的百科全书

Remove ads

indent是一个自Unix时代就已经存在的工具程序,可依用户自行定义的程序设计风格重新缩进成CC++代码的样式。至于对C++的支持则被认为是实验性的。

使用示例

命令行

indent somefile.c -st -bad—blank-lines-after-procedures -bli0 -i4 -l79 \
-ncs -npcs -nut -npsl -fca -lc79 -fc1

somefile.c的样式缩进成像BSD/Allman样式,然后将结果写到标准输出

GNU indent

事实速览 原作者, 开发者 ...

GNU indent是indent的GNU项目版本,不过,GNU indent使用GNU样式做为样式的默认值。

外部链接

Loading related searches...

Wikiwand - on

Seamless Wikipedia browsing. On steroids.

Remove ads