You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The C/C++ extension for Visual Studio Code supports source code formatting using clang-format and vc_format. Both of these formatting options are included in the extension, with clang-format being the default.
[...]
By default, if an .editorconfig file with relevant settings is identified near the code being formatted, the Visual C++ formatting engine is used instead of clang-format.
https://code.visualstudio.com/docs/cpp/cpp-ide#_code-formatting
The clangd extension overwrites this and enforces clang-format. Thus defining the format via .editorconfig is impossible.
Add a setting to disable formatting in the clangd extension and fall back to formatting by the C/C++ extension.
The text was updated successfully, but these errors were encountered: