西西软件园多重安全检测下载网站、值得信赖的软件下载站!
西西首页 常用软件 软件下载 安卓软件 游戏下载 安卓游戏 MAC应用 驱动下载 安卓电视
系统工具网络工具媒体工具图形图像聊天工具应用软件编程开发手机软件安卓应用电脑安全字体素材

GC GreatCode代码美化工具

1.150 绿色免费版
  • GC GreatCode代码美化工具1.150 绿色免费版
  • 软件大小:162KB
  • 更新时间:2017-03-09 08:17
  • 软件语言:中文
  • 软件厂商:
  • 软件类别:国产软件 / 免费软件 / 编程辅助
  • 软件等级:3级
  • 应用平台:WinAll, WinXP, Win7
  • 官方网站:https://sourceforge.net/projects/gcgreat
好评:50%
坏评:50%

装机必备软件

软件介绍

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 绿色免费版

    其他版本下载

    热门评论

    最新评论

    发表评论 查看所有评论(0)

    昵称:
    表情: 高兴 可 汗 我不要 害羞 好 下下下 送花 屎 亲亲
    字数: 0/500 (您的评论需要经过审核才能显示)

    下载帮助下载帮助西西破解版软件均来自互联网, 如有侵犯您的版权, 请与我们联系。

    TOP
    软件下载