Community
Participate
Working Groups
CDT code Formatter should give an option to format constructor initializer list like this (Note: New line before comma): class Point { public: Point(double a, double b, double c, double d) : a(a) , b(b) , c(c) , d(d) , e(0) , f(1) { } Open Formatter : Project -> Properties -> C++ General -> Formatter CDT already has this feature (in tab: 'New Line') : 'insert new line' box : 1) before colon in constructor initializer list Please add this new option in above tab (tab: New Line, Box: 'insert new line'): 1) Newline before comma in constructor initializer list This will avoid a 2-line edit in the constructor initialization line when adding a new field. So, This formatting is better than adding a trailing ',' to the existing line and then the new field on the next. Thanks Deepak