Options–>Custom Command–>Add
Command:astyle
Run “D:\soft\astyle\astyle.exe” --style=ansi -f -p -P -U -v -n -N %f(填好astyle.exe的路径)
Output:不选.
Control: 选择pause when done和exit to window.
source links in output:file, then line
–>menu
add to work menu.
点击确定完成。以后就可以在Work菜单中找到“astyle“这一项了,点击它,就可以对当前文件进行格式化操作。
2. 点击add,添加新的命令Astyle_C。
其中,Run中输入astyle的命令参数:
D:\soft\astyle\astyle.exe --style=ansi -f -p -P -U -v -n -N
软件下载地址:https://sourceforge.net/projects/astyle/