Wanted to get our students using a standard code formatting noticed that you can turn one on from here, C++ programming with Visual Studio Code
But that puts braces on new lines, which we didn’t like. It sounded like we should just be able to add a
.clang-format
file (put in under
.vscode
with maybe something like
BreakBeforeBraces: BS_Attach
per Clang-Format Style Options — Clang 19.0.0git documentation, but no joy. Anyone familiar with how to configure this?