socket
socket copied to clipboard
Use clang-format
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 |