How to disable auto-spacing of * after a type in Visual Studio 2017?
On Visual Studio 2019:
Tools > Options > Text Editor > C/C++ > Formatting > Spacing
Here change the "Pointer/reference alignment"
Select the option of your choice.
Go to Tools->Options, then Text Editor-C>/C++->Formatting->Spacing and look through the options, however I do not believe that particular item is configurable.