indent_case_shift
Category: Indenting options Type: numeric [0 .. 16] Default: 0
Spaces to shift the 'case' line, without affecting any other lines. Usually 0.
raw CPP code | indent_case_shift=0 | indent_case_shift=5 | indent_case_shift=10 | indent_case_shift=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.