I am using Visual studio code on mac. I didn't find solution nowhere.
When i use snippets for C/C++ from Microsoft. I get results like this:
for (size_t i = 0; i < count; i++)
{
}
but i want this snippets to look like this.
for (size_t i = 0; i < count; i++) {
}
if i reformat code i get what i want. But its time consuming if i need to format or edit code on every snippet i use.
My settings.json:
{
"workbench.colorTheme": "Material Theme High Contrast",
"workbench.iconTheme": "material-icon-theme",
"files.autoSave": "afterDelay",
"liveServer.settings.donotShowInfoMsg": true,
"C_Cpp.clang_format_fallbackStyle": "{ BasedOnStyle: Google, IndentWidth: 4, ColumnLimit: 0}",
"C_Cpp.clang_format_style": "{ BasedOnStyle: Google, IndentWidth: 4, ColumnLimit: 0}"
}