Artistic Style使用说明
来源:互联网 发布:java中什么是类 编辑:程序博客网 时间:2024/05/18 17:41
Artistic Style是一个 C,C++,C#,JAVA的源代码格式化,美观化的工具。可以到sourceforge.net上下载,它是一个开源工具。地址是“http://sourceforge.net/projects/astyle”。
下载的Artistic Style windows版本的包里带有exe文件。也可以使用visual studio .net 2003或2005编译。
这个工具是一个命令行的工具。
style=ansi
# set default parsing to c/cpp files
mode=c
# brackets should be attached to pre-bracket lines
brackets=break
# set 6 spaces per indent
indent=spaces=4
# indent switch blocks
indent-switches
# suffix of original files should be .pre
suffix=.pre
#Add extra indentation to namespace blocks
indent-namespaces
max-instatement-indent=80
min-conditional-indent=0
pad=oper
下载的Artistic Style windows版本的包里带有exe文件。也可以使用visual studio .net 2003或2005编译。
这个工具是一个命令行的工具。
命令行格式如下:
astyle [options] SourceFile1.cpp SourceFile2.cpp SourceFile3.cpp [ . . . ]
例如:astyle --options=c.opt foo.cpp
--options=命令行选项指定了选项文件。
这是我用的options文件:style=ansi
# set default parsing to c/cpp files
mode=c
# brackets should be attached to pre-bracket lines
brackets=break
# set 6 spaces per indent
indent=spaces=4
# indent switch blocks
indent-switches
# suffix of original files should be .pre
suffix=.pre
#Add extra indentation to namespace blocks
indent-namespaces
max-instatement-indent=80
min-conditional-indent=0
pad=oper
- Artistic Style使用说明
- Artistic Style使用说明
- Artistic Style Options File
- Artistic Style 2.05.1
- Artistic Style Transfer
- SourceInsight中集成Artistic Style
- source insight and artistic style
- SourceInsight 中集成Artistic Style 格式化代码
- Artistic Style----开源代码格式化工具
- artistic style (astyle) 的使用配置
- SourceInsight 中集成Artistic Style 格式化代码 .
- 在Eclipse CDT 中配置Artistic Style
- Artistic Style----开源代码格式化工具
- Artistic Style 代码风格设置(ultraedit)
- Artistic Style 基于 Linux vim的使用。
- 【A Neural Algorithm of Artistic Style】 Pics
- neural artistic style艺术风格图片生成测试
- A Neural Algorithm of Artistic Style
- 2007-2-11晚 随想
- Solaris10上安装64位Oracle9201
- Java API设计指南(一)
- 35 岁前程序员要规划好的四件事
- Java API设计指南(二)
- Artistic Style使用说明
- 让多页Excel表格自动打印统一表头
- 追求代码质量: 用 AOP 进行防御性编程
- BDC program for Purchase Info Records (ME11)
- What's wrong with arrays?
- UNIX 高手的 10 个习惯
- Should I use NULL or 0?
- SHA-1,MD5简单介绍
- .NET Remoting构建分布式数据库查询