source insight 中如何使用Astyle
1.在SourceInsight菜单栏里,Options–>Custom Commands界面上选择:Add,在弹出对话框写入 Astyle(名字可以随便起)
2.在run中添加 “目录(看情况自己写)\AStyle.exe” --style=ansi -n %f
我使用的是
"D:\Program Files\AStyle\AStyle.exe" --style=ansi -n %f
3.该指令只能用来格式化当前文件,格式化整个工程文件的指令试了好多都没有成功
4.Astyle 下载地址
https://download.csdn.net/download/qq_25415009/10907304
5.下面试参考别人的博客
[1]: https://blog.csdn.net/armygeneral/article/details/6346515