socket icon indicating copy to clipboard operation
socket copied to clipboard

Use clang-format

Open aleclarson opened this issue 2 years ago • 0 comments

There's good VS Code support for clang-format (I use the Clangd extension) that allows format-on-save behavior, which is very convenient in my experience. It allows me to focus on getting the code to work and not fiddling with acceptable formatting/indentation.

You can choose a style to your liking with the .clang-format configuration file. I would personally recommend the Chromium style.

.clang-format
BasedOnStyle: Chromium

aleclarson avatar Oct 10 '23 04:10 aleclarson