Using automatic braces over parenthesis during initializer list
Hello,
I recently formatted my computer and lost some of my settings. I recall either in Visual Studio or Resharper there was a way to override the default auto parenthesis '()' during the initialization constructor to the bracers '{}'
For example:
void Foo : position{0} and not position(0)
{}
Thanks
Please sign in to leave a comment.
Hello,
You probably mean the "Use uniform initialization in member initializers" syntax style setting.
EDIT: Fixed it. For some reason setting Visual Studio options Formatting-->Spacing: Insert space within braces of uniform distribution and initializer list turned off it worked.
I was under the impression ReSharper took over it all.
================================================================
Thanks!! I actually found it, but couldn't get back in here to deliver the message.
One additional thing that is happening now is it's automatically putting spaces between the braces and variable.
For example:
void Foo() : pPosition{ nullptr } instead of pPosition{nullptr}
I may find it before someone gets back to me, but as far as I can see, every setting that involves some type of initialization looks like the 2nd one already.