doc/devdocs/development/style.md
.\.pipelines\applyXamlStyling.ps1 -Main..clang-format style file to enable automatic code formatting. You can easily format source files from Visual Studio. For example, CTRL+K CTRL+D formats the current document.format_sources powershell script from command line. It gets a list of all currently modified files from git and invokes clang-format on them.
Please note that you should also have clang-format.exe in %PATH% for it to work. The script can infer the path of clang-format.exe version which is shipped with Visual Studio at %VCINSTALLDIR%\Tools\Llvm\bin\, if you launch it from the Native Tools Command Prompt for VS.