indent_sparen_extra
Category: Indenting options
Type: numeric [-16 .. 16]
Default: 0
When opening a paren for a control statement (if, for, while, etc), increase the indent level by this value. Negative values decrease the indent level.
| raw CPP code | indent_sparen_extra=0 |
|---|---|
| /*-- this is the default sample --*/ int main(int argc, char** argv){ int n = 0; if(arg>=1){ printf("Hello %s!\n", argv[1]); n=strlen(argv[1]); }else{ puts("Hello world!"); } return n; } | /*-- this is the default sample --*/ int main(int argc, char** argv){ int n = 0; if(arg>=1){ printf("Hello %s!\n", argv[1]); n=strlen(argv[1]); }else{ puts("Hello world!"); } return n; } |
Not the best code for this option? See how to improve the .uds file used to generate these examples.