热门问题
时间线
聊天
视角

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