首頁 繪圖設計 工作閒聊 比賽活動 美術討論 標籤 圖片
回上頁
My Indent Parameters/Options for C/C++/PHP code
Type(Type) 2011/3/2 12:58

Share personal commonly used Indent parameter/Options



Share my GNU indent commonly used parameters options
mainly for Linux C code,
yet work not bad for PHP code, too.
=> Tab Based, Screen = 95+ lines
My screen resolution = 1280x1024, Font = OEM/DOS 14px

分享一下我常用的 indent 參數,主要是用在 Unix/Linux C Code
不過 PHP 也適用。基本上是「TAB 為縮排基準(非空格), 95+ 行寬」

我的螢幕是 1280x1024,字體是 "OEM/DOS" 14px
所以如果你的是 1600 以上,可以嘗試把 -l95 提升到 "-l128" 以上


代碼:

indent -nbad -bap -nbc -br -brs -c33 -cd33 -ncdb -ce -ci4 -cli4 -cp33 -cs -d0 -di1 -nfc1 -nfca -hnl -i4 -ip0 -l95 -lp -npcs -nprs -npsl -saf -sai -saw -nsc -nsob -nss -ut -ts4

(3,308 views)
[更多討論] 討論區 Windows, Linux, Perl, PHP, C/C++, Driver, Web 理論、應用、硬體、軟體
回上頁

"My Indent Parameters/Options for C/C++/PHP code" 傳統頁面(電腦版)

首頁 繪圖設計 工作閒聊 比賽活動 美術討論 標籤 圖片
傳統桌面版 [ 登入/註冊 ]
© Vovo2000.com Mobile Version 小哈手機版 2024