views:

78

answers:

2

I tried to find a solution for now ~30min and couldn't find any. I am trying to set up the code style in CDT so it gives me:

MyClass::MyClass() :    
var1(1), 
var2(2), 
var3(3){

}

instead of

MyClass::MyClass() :    
var1(1), var2(2), var3(3){

}

but I couldn't find an option to do so.

The only 'initializer list' option I could find is actually for arrays and therefore not useful for me.

My question is: Am I missing the right spot? Is there a plug-in out there which does better formatting of C++ code than CDT?

A: 

I've got the same problem, i think. I have

MyClass::MyClass() :    
var1(1), var2(2), var3(3)
{

}

and want

MyClass::MyClass() :    
var1(1), 
var2(2), 
var3(3)
{

}

Is there a solution for this problem?

Dape
Couldn't find anything yet. Tried Astyle but it didn't have the option.
GoldenThunder
A: 

Have the same problem with eclipse CDT! No solution yet?

prokher
No solution yet. I guess we have to wait for the CDT developers to implement it.
GoldenThunder