分类
大小:.16M更新:2017-03-09
类别:编程辅助系统:WinAll,WinXP,Win7
GC GreatCode是一个C/C++源代码美化工具,这东西是在dos或者命令行提示符已经Linux shell下执行的代码格式化工具,其功能是将C/C++源码进行重新排版,变得更容易读懂。
可以自定义代码的风格和缩进,以及函数和语句的规范。
使用前先修改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
这条命令说明了格式化前备份文件参数 -bak- 如果不想备份就去掉这句
-file-hello.cpp 指定了要格式化的文件为hello.cpp,如果是其他文件请自行替换
一些常用的参数归纳如下如下:
-file-<filename> 指定要格式的文件
-file_insert-<path/file> 指定要将什么文件插入到当前格式化文件中
-in_cfg-<filename> 读取自定义配置文件(默认配置文件如果有的话应该是gc.cfg
[-no]-bak- 决定是否转换前备份文件
-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.
易语言检查更新模块编程辅助.11M2018最新版
查看开心签名神器编程辅助M20191112 官方绿色版
查看酷传数据监控编程辅助Mv3.7.1官方正式版
查看HTMLPad附注册码版编程辅助M免费破解版
查看DevComponents DotNetBar编程辅助Mv14.1.0.35最新版
查看串口调试助手带其他小工具源程序编程辅助.22MV1.0绿色版
查看SoapUI For Linux编程辅助MV5.2.1免费版
查看网络导航css代码生成器编程辅助.42Mv1.0.0.0 绿色免费版
查看正则表达式自动生成器编程辅助MV 2.0免费专业版
查看Crossnote交叉笔记插件for VSCode编程辅助Mv0.0.1 免费版
查看微信小程序开发工具32位编程辅助M官方免费版
查看matlab2017b百度云编程辅助M
查看websocket_wss_ws协议调试器编程辅助MV1.0绿色免费版
查看svn 清理失败解决工具编程辅助M3.17 免费版
查看java环境配置软件编程辅助.02Mv1.0免费版
查看dotNet编程辅助MV4.7.2.0最新版
查看Eugenio调试器编程辅助M
查看触动精灵取点抓色器(TSColorPicker)编程辅助Mv1.7.2-1 官方最新版
查看国信期货CTP交易API接口开发服务编程辅助MV6.2.0官方版
查看易语言助手编程辅助MV3.1.0727一键安装程序
查看CnVCL 组件包编程辅助M20170308 Alpha官方最新版
查看HTTP连接Debug工具Fiddler web Debugger(FD)编程辅助MV5.0.20194.41348绿色中文版
查看迷你批量编码转换工具编程辅助.17M绿色免费版
查看Passolo 非标字串宏编程辅助.39MV2015.12.04 免费版
查看点击查看更多