Austen Stone
Austen Stone

Reputation: 1069

Visual Studio 2017->2019 C/C++ Formatting Spaces After Ampersand Operator

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

Answers (1)

wonsch
wonsch

Reputation: 37

This bug will be fixed.

Wrong code formatting with ampersand operator

Upvotes: 2

Related Questions