indent_square_nl
If an open square is followed by a newline, whether to indent the next line so that it lines up after the open square (not recommended).
Possible values are true and false, default false.
Examples
Base example:
int main()
{
int x = 10;
int y = 20;
manyDimentionsArr[1,
2,
3] = x;
manyDimentionsArr[
1,
2,
3] = x;
return 0;
}
It's hard to spot difference, but there is one space in below results.
true
After:
int main()
{
int x = 10;
int y = 20;
manyDimentionsArr[1,
2,
3] = x;
manyDimentionsArr[
1,
2,
3] = x;
return 0;
}
false
After:
int main()
{
int x = 10;
int y = 20;
manyDimentionsArr[1,
2,
3] = x;
manyDimentionsArr[
1,
2,
3] = x;
return 0;
}
See also
- indent_paren_nl: If an open parenthesis is followed by a newline, whether to indent the next line so that it lines up after the open parenthesis.
- indent_comma_paren: Whether to indent a comma when inside a parenthesis. If true, aligns under the open parenthesis.
- indent_func_def_param: Same as indent_func_def_param but for function definitions.