Reputation: 1069
When switching from VS2017 to VS2019 I imported our teams settings using the Import and Export Settings Wizard. With VS2019 I am seeing unwanted formatting when using (ctrl+k, ctrl+d) Format Document. This is using the C language.
I have searched through VS2019 C/C++ formatting settings and compared this to the settings on VS2017. They are the same.
In particular I am getting spaces after the ampersand in my c code.
socket_recv(sock, (char *)&response_header, sizeof(response_header);
turns into
socket_recv(sock, (char *)& response_header, sizeof(response_header));
This space isn't added using the same formatting settings in VS2017.
Upvotes: 0
Views: 421
Reputation: 37
This bug will be fixed.
Wrong code formatting with ampersand operator
Upvotes: 2