MDK中添加Astyle
1.打开MDK,点击toll->Customize Tool Menu
2.新建一个Menu Content,起名Astyle(随便起)
3.在command中写入:
-p !E "$E*.c" "$E*.h"
-p !E -n "$E*.c" "$E*.h"(不保存备份)
-p !E -n(单个文件管用)
(下边两个好像也可以,根据astyle的版本不同自己试吧)
--style=ansi -R ..\*.c ..\*.h -n %f
--style=ansi -R -n %f
--style=ansi -n %f
4.Astyle 下载地址
https://download.csdn.net/download/qq_25415009/10907304