clang-format is a standalone tool used to format C / C ++ code. The C / C ++ extension comes with it, although you can specify the path to your own installed version of clang-format on your computer using the C_Cpp.clang_format_path option.
The clang style style source ( C_Cpp.clang_format_style ) is set to file by default, which is read in the .clang-format file. See this page for more information on the available style options.
Otherwise, the easiest way you're probably looking for is to simply change the C_Cpp.clang_format_fallbackStyle parameter.
The style you are looking for is probably WebKit .
Therefore, your .vscode/settings.json file should look something like this:
{ "C_Cpp.clang_format_fallbackStyle": "WebKit" }
source share