I'm using clang-format (VSCode built in) to format my CPP code, and I have something like this in my code (before formatting):
input = {18, -11, ..., 11};
There are 100 integers within curly braces.
After formatting with clang-format, it changes into:
input = {
18,
-11,
...
11
};
I don't want it to display vertically over 100 lines. But I don't know which style option I have to configure in .clang-format file.
Is there any way to see which style option that is apply to the code (maybe debug/verbose information or something else)? Or I can only see the document of clang format, try every possible one to find the style option that controls it?
Thanks!
The following is the .clang-format file I use.
---
Language: Cpp
BasedOnStyle: Google
AccessModifierOffset: -4
DerivePointerAlignment: false
IndentWidth: 4
SpaceBeforeParens: Never
// clang-format off
// clang-format on
comment pair and moving on? – Botje