C++ 代码格式化工具Astyle

1.下载Asyle程序。

win版本:https://sourceforge.net/projects/astyle/

 

2.将bin/AStyle.exe拷到源码目录中,在命令行终端执行。

 

AStyle.exe --style=google --recursive --indent=spaces=2 --suffix=none --mode=c *.h *.hpp *.cpp   

 

3.帮助文档

 

posted @ 2018-05-16 17:56  horsetail  阅读(1705)  评论(0编辑  收藏  举报