You can format your code by Clang-Format follow below steps.
search by “format” in online section, and install <Format on save> and <ClangFormat> plugin
open tools->options, set format on save true in ClangFormat
put attach clangformat config file to solution root path