Source Insight 中使用 AStyle 代碼格式工具
彭會鋒
2015-05-19 23:26:32
Source Insight是較好的代碼閱讀和編輯工具,不過source insight沒有集成代碼格式化工具;GNU的astyle是一個較好的免費的代碼格式化工具,經過它的格式化之后,代碼排版會變得很漂亮;Astyle主要作為插件供其他程序調用,具體的使用方法如下:
1 astyle下載地址:
http://sourceforge.net/projects/astyle/
2 將astyle解壓到c盤根目錄文件夾中
3 Source insight中添加astyle命令