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
再设置快捷键
工具->选项 -> 环境-> 键盘
点分配-->点确定