indent_columns
The number of columns to indent per level. Usually 2, 3, 4, or 8.
Default is 8.
Examples
Config:
indent_with_tabs = 1
indent_columns = 2
Before:
int main()
{
int x = 10;
int sum = 0;
for (int i=0; i<x; i++) {
sum = sum+i;
}
std::cout << "sum is" << sum << '\n';
}
After:
int main()
{
int x = 10;
int sum = 0;
for (int i=0; i<x; i++) {
sum = sum+i;
}
std::cout << "sum is" << sum << '\n';
}
Code on html page may look the same, but it replaced each tab with two spaces (as Google guide recommends).
See also
- indent_with_tabs - How to use tabs when indenting code.
- input_tab_size - The original size of tabs in the input.
- output_tab_size - The size of tabs in the output (only used if align_with_tabs=true).
- indent_namespace_level - The number of spaces to indent a namespace block.