Force the usage of embedded clang-format #7117
-
Is there a way to do it? Seems like it's intended to be a last-resort fallback, but I'd like to use it as a first class option, because of the redundancy of having more than one on my machine, which is pointless since I'm always working on VSCode, and even if that wasn't the case, it's generally more up-to-date than my distro's. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
The bundled version of clang-format is supposed to automatically be used if the version is newer. Is that not working for you? Are you sure you don't have the C_Cpp.clang_format_path setting set? The code that does this is around https://github.com/microsoft/vscode-cpptools/blob/main/Extension/src/LanguageServer/settings.ts#L106 if you feel like debugging what is going wrong. |
Beta Was this translation helpful? Give feedback.
The bundled version of clang-format is supposed to automatically be used if the version is newer. Is that not working for you? Are you sure you don't have the C_Cpp.clang_format_path setting set? The code that does this is around https://github.com/microsoft/vscode-cpptools/blob/main/Extension/src/LanguageServer/settings.ts#L106 if you feel like debugging what is going wrong.