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.帮助文档

猜你喜欢

转载自www.cnblogs.com/cv-pr/p/9047278.html