sp_after_semi
Add or remove space after ;
, except when followed by a comment.
Possible values are ignore, add, remove and force. Default add.
Some values may conflict with mod_remove_extra_semicolon.
Examples
add
Code before:
int x=10;//following comment
int sum = 0;
x = 20*x;sum = sum + x;
Code after:
int x=10;//following comment
int sum = 0;
x = 20*x; sum = sum + x;
remove
Code before:
int x=10;//following comment
int sum = 0;
x = 20*x; sum = sum + x;
Code after:
int x=10;//following comment
int sum = 0;
x = 20*x;sum = sum + x;
See also
- mod_remove_extra_semicolon: Whether to remove superfluous semicolons.
- sp_after_assign: Add or remove space after assignment operator
=
,+=
, etc. - sp_before_assign: Add or remove space before assignment operator '=', '+=', etc.
- sp_assign: Add or remove space around assignment operator '=', '+=', etc.