Vscode c++ code formatting won’t add space after open parenthesis

  c++, visual-studio-code, vscode-settings

I am using visual studio code with c++. When I format my code (Ctrl-k,Ctrl-f) it removes the spaces I place after/before open/close parentheses. I have the setting to add these spaces enabled and also see them in the settings.json file. I’m not using a prettier extension. I use only a c++ light theme extension, cmake and cmake tools extensions.
The formatting is working otherwise, perhaps, only because I am fine with the default formatting except the extra spaces. Trivial but it’s driving me crazy.
Does anyone have an idea how to make the formatted pay attention to the settings?
Thanks,
Eddie

Source: Windows Questions C++

LEAVE A COMMENT