热门问题
时间线
聊天
视角

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