绿软下载站:请安心下载,绿色无病毒!

最近更新热门排行
您现在的位置:首页编程开发编程辅助→GC GreatCode代码美化工具
GC GreatCode代码美化工具1.150 绿色免费版
0
0

GC GreatCode代码美化工具1.150 绿色免费版

扫描下载到手机
请输入预约的手机号码
3182人已预约此游戏
确定取消
  • 软件介绍
  • 软件截图
  • 相关下载

Tags:代码美化,源代码美化

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.

GC GreatCode代码美化工具1.150 绿色免费版

普通下载地址:
电信下载
移动下载

编程辅助

软件评论 请自觉遵守互联网相关政策法规,评论内容只代表网友观点,与本站立场无关!

 
网友评论