1.下载Asyle程序。html
win版本:https://sourceforge.net/projects/astyle/google
2.将bin/AStyle.exe拷到源码目录中,在命令行终端执行。spa
AStyle.exe --style=google --recursive --indent=spaces=2 --suffix=none --mode=c *.h *.hpp *.cpp
3.帮助文档.net
http://astyle.sourceforge.net/astyle.html