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