Search code examples
c++ccommentsuncrustify

Uncrustify align trailing comments?


Is there a way to go from the below

int a; ///< This is a variable
int b = 3; ///< This is another variable

To the below?

int a;      ///< This is a variable
int b = 3;  ///< This is another variable

Solution

  • align_right_cmt_span should be the correct setting.