indent_switch_case
Category: Indenting options Type: numeric [0 .. 16] Default: 0
Spaces to indent 'case' from 'switch'. Usually 0 or indent_columns. It might be wise to choose the same value for the option indent_case_brace.
raw CPP code | indent_switch_case=0 | indent_switch_case=5 | indent_switch_case=10 | indent_switch_case=16 |
---|---|---|---|---|
void f(){switch(a){case 1:a++;break;case -1:a--;case 123:a--;break;default:a=0;}} | void f(){ switch(a){case 1: a++; break; case -1: a--; case 123: a--; break; default: a=0;} } | void f(){ switch(a){case 1: a++; break; case -1: a--; case 123: a--; break; default: a=0;} } | void f(){ switch(a){case 1: a++; break; case -1: a--; case 123: a--; break; default: a=0;} } | void f(){ switch(a){case 1: a++; break; case -1: a--; case 123: a--; break; default: a=0;} } |
Not the best code for this option? See how to improve the .uds file used to generate these examples.