1. 下载Astyle.exe文件
http://d.119g.com/f/FB635F8C19491D1D.html
如,解压后位置为:"E:\installer\AStyle_2.03_windows\AStyle\bin\AStyle.exe"
2. 打开sourceinsight
3. options->custom commands -> add
加一个新的命令,名字为Format File ,运行处填写:"E:\installer\AStyle_2.03_windows\AStyle\bin\AStyle.exe" -n -t --style=ansi %f
4. options->assign key ... ...
done