[Solved] Modify vscode code formatter (how it tidy code) with {}

Hi there,
I did not succeed using your suggestion (as proposed) @pfeerick, maybe I forget something…it’s high probability…this ways of settings preference, with json, is not very noobs friendly :slight_smile:
But based on the proposal I was able to do some more accurate search and I ended on this post:

Someone here suggested to simply use “webkit” as C_Cpp.clang_format_fallbackStyle

So, I get in vscode in files/preferences/settings, here I wrote ‘clang’ in the search field on top, C_Cpp.clang_format_fallbackStyle is the 1st search result.
I wrote here “Webkit” instead of default value “Visual Studio”, press enter, and that’s it.

Now the opening { are where I wanted them to be !
I hope this ‘webkit’ settings has no issue with arduino code :thinking:

Anyway, for now, problem is solved for me. I write this message just to share if some other are interested.

Thanks for your help !

1 Like