Where can I set correct formating for implementations generated by Visual Studio?

41 Views Asked by At

If I ask Visual Studio 2017 to generate an implementation for me using this button:

enter image description here

The result will be:

void MyClass::testMethod(int * someParameter) const
{
}

Notice that the * is not next to type. In our project, we put & and * next to types. This is what Bjarne Stroustrup prefers as well:

A "typical C++ programmer" writes int* p; and explains it "p is a pointer to an int" emphasizing type. Indeed the type of p is int*. I clearly prefer that emphasis and see it as important for using the more advanced parts of C++ well.

Is there a setting for formatting the generated methods so that they are consistent with this formatting style?

0

There are 0 best solutions below