sp_num_before_tr_emb_cmt

Number of spaces before a trailing or embedded comment.

Should be used with sp_before_tr_emb_cmt set to force or add.

Integer number, default 0.

Examples

Base example:

int x = 10;      // this is trailing comment
int sum  =  0;   // another trailing comment

value is 2

Config:

sp_before_tr_emb_cmt     = force
sp_num_before_tr_emb_cmt = 2

After:

int x = 10;  // this is trailing comment
int sum  =  0;  // another trailing comment

value is 0

Config:

sp_before_tr_emb_cmt     = force

Here sp_num_before_tr_emb_cmt is not specified (so it's 0 by default).

After:

int x = 10; // this is trailing comment
int sum  =  0; // another trailing comment

Note, one space distance was set.

See also