下载啦:请放心下载,安全无病毒!

软件提交最近更新 热门排行
您现在的位置: 下载啦 > 编程开发 > 编译工具 > GC GreatCode代码美化工具 v1.150官方版
GC GreatCode代码美化工具 v1.150官方版
0%
0%

GC GreatCode代码美化工具 v1.150官方版 GC GreatCode代码美化工具

  • 软件介绍
  • 软件截图
  • 相关下载
  • 相关文章

GC GreatCode代码美化工具是一款简单好用的GC GreatCode代码美化软件,该软件是在dos或者命令行提示符已经Linux shell下执行的代码格式化工具,它的主要功能就是可以将C/C++源码进行重新排版,变得更容易读懂。

GC GreatCode代码美化工具 v1.150官方版

基本介绍

GC GreatCode是一个C/C++源代码美化工具,这东西是在dos或者命令行提示符已经Linux shell下执行的代码格式化工具,其功能是将C/C++源码进行重新排版,变得更容易读懂。

可以自定义代码的风格和缩进,以及函数和语句的规范。

路径修改说明

使用前先修改GC.bat中exe文件路径,例如:

"D:Program FilesGnuWin32binGC.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- 指定要格式的文件

-file_insert- 指定要将什么文件插入到当前格式化文件中

-in_cfg- 读取自定义配置文件(默认配置文件如果有的话应该是gc.cfg

[-no]-bak- 决定是否转换前备份文件

-tab-size- 觉定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代码美化工具v1.150官方版(1)

下载地址

  • Pc版

GC GreatCode代码美化工具 v1.150官方版

软件评论 您的评论需要经过审核才能显示

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

热门精选

热门推荐