西西軟件園多重安全檢測下載網(wǎng)站、值得信賴的軟件下載站!
西西首頁 安卓軟件 安卓游戲 電腦軟件 軟件教程 專題合集

GC GreatCode代碼美化工具

1.150 綠色免費版
  • GC GreatCode代碼美化工具1.150 綠色免費版
  • 軟件類型:國產(chǎn)軟件 / 免費軟件
  • 軟件大小:162KB
  • 更新時間:2017-03-09 08:17
  • 應(yīng)用平臺:WinAll, WinXP, Win7
  • 軟件語言:中文
  • 軟件等級:3級
  • 官方網(wǎng)站:https://sourceforge.net/projects/gcgreat
5.0
0
好用
0
難用
  • 軟件簡介
  • 軟件截圖
  • 軟件評論
  • 軟件推薦

GC GreatCode是一個C/C++源代碼美化工具,這東西是在dos或者命令行提示符已經(jīng)Linux shell下執(zhí)行的代碼格式化工具,其功能是將C/C++源碼進行重新排版,變得更容易讀懂。
可以自定義代碼的風格和縮進,以及函數(shù)和語句的規(guī)范。

路徑修改:

使用前先修改GC.bat中exe文件路徑,例如:
"D:\Program Files\GnuWin32\bin\GC.exe" -space_if- -no-space_cast_after- -code_len-80 -code_split_fctcall_style-1 -code_split_fctdef_style-2 -code_split_fctdecl_style-1 -code_split_for_style-1 -code_split_if_style-1 -code_constructor_style-1 -no-code_wizard_indent- -stmt_force_brace-1 -stmt_concat_else_2_stmt- -stmt_brace_style_decl-2 -stmt_brace_style-2 -stmt_switch_style-3 -stmt_switch_eol-1 -stmt_static_init_style-3 -no-cmt_add_gc_tag- -no-cmt_add_file- -cmt_c2cpp- -no-cmt_first_line_break_first- -no-cmt_first_line_break_last- -cmt_sep_len-79 -no-cmt_sep_break- -cmt_sep_eol_before-0 -code_align_max_blanks-1 -no-cmt_add_fct_def_class- -no-cmt_add_class_access- -cmt_decl_len-80 %1

其使用方法是:

GC -no-bak- -tab_size-8 -file-filename.c

例如,當前文件夾有一個 hello.cpp文件 可以使用這條命令來格式化它
GC -bak- -tab_size-4 -file-hello.cpp
這條命令說明了格式化前備份文件參數(shù) -bak- 如果不想備份就去掉這句

-file-hello.cpp 指定了要格式化的文件為hello.cpp,如果是其他文件請自行替換

一些常用的參數(shù)歸納如下如下:
-file-<filename>    指定要格式的文件
-file_insert-<path/file> 指定要將什么文件插入到當前格式化文件中
-in_cfg-<filename>   讀取自定義配置文件(默認配置文件如果有的話應(yīng)該是gc.cfg
[-no]-bak-   決定是否轉(zhuǎn)換前備份文件
-tab-size-<NUM> 覺定tab的長度

還是不說太多了,更多的幫助可以使用GC -h 來獲得,早些的版本是 GC -?
此軟件是完全開源的,建議使用最新版本 GC GreatCode

GC greatcode is a C/C++ source code beautifier that is now fully open source.

The distribution zip file contains the source code together with a windows executable. Executable files for Linux can be build from the source files (makefiles being constructed via premake4). 

The original author of GC no longer has time to maintain the source code, but others are adding to the code base. If you are interested in adding to the code base, contact one of the administrators who will add you as a developer.


軟件截圖

GC GreatCode代碼美化工具 1.150 綠色免費版

其他版本下載

發(fā)表評論

昵稱:
表情: 高興 可 汗 我不要 害羞 好 下下下 送花 屎 親親
查看所有(0)條評論 > 字數(shù): 0/500