Hi
I noticed that if I copy and paste a class definition which has a constructor with an initialiser list, the formatting gets lost.
Example:
class Test : public A
{
Test() :
A()
{
}
void Func()
{
}
};
After copying and pasting:
class Test : public A
{
Test() :
A()
{
}
void Func()
{
}
};
Also, if I add the keyword public:
class Test : public A
{
public:
Test() :
A()
{}
void Func()
{
}
};
then after a copy-paste the formatting is broken in a different way:
class Test : public A
{
public:
Test() :
A()
{}
void Func()
{
}
};
This only occurs when the colon is on the same line with the constructor name, and the initialiser list itself is on the next line, but this happens to be the way I often write initialiser lists.
I'm using build 1559.
Thanks
Alex.