microsoft / vscode-cpptools

Official repository for the Microsoft C/C++ extension for VS Code.
Other
5.52k stars 1.55k forks source link

"Operator %" insert space affected by “C_Cpp.vcFormat.space.pointerReferenceAlignment”. #8477

Open LiShunGang opened 2 years ago

LiShunGang commented 2 years ago

Discussed in https://github.com/microsoft/vscode-cpptools/discussions/8461

Originally posted by **luckeverda** November 29, 2021 This is my setting ![image](https://user-images.githubusercontent.com/36393104/143866248-aaa1e454-9c04-402b-99ca-c67915622c51.png) After auto format, the space before "operator %" is removed. But this does not happen on other operators. ![image](https://user-images.githubusercontent.com/36393104/143866797-cfe0f7a3-9441-4d53-90ad-5e5aa60dd45a.png) How to make it insert space near "operator %"? Vscode version: 1.7.0 C/C++ version: 1.61.1
Colengms commented 2 years ago

Hi @luckeverda . Thanks for reporting this. This also repro's in VS. (We share the vcFormat implementation with VS). So, I've opened a bug against VS internally.