vs2013格式化C

工具->扩展->联机搜索 
AStyle Extension



工具->选项 ->  AStyle Formatter -> General
--style=allman --indent=spaces=4 --indent-classes --indent-modifiers --indent-switches --indent-cases --indent-namespaces --indent-labels --indent-preproc-block --indent-col1-comments --break-blocks --break-blocks=all --pad-oper --pad-paren-out --pad-first-paren-out --pad-header --unpad-paren --delete-empty-lines --fill-empty-lines --break-elseifs --add-brackets --add-one-line-brackets --keep-one-line-blocks --mode=c
View Code

 


再设置快捷键
工具->选项 -> 环境-> 键盘

 点分配-->点确定

posted @ 2019-07-05 09:30  慕沁  阅读(295)  评论(0)    收藏  举报