Closed yaochx closed 6 years ago
Do you have the clang-format extension installed? It's possible another extension is executing the format document. If you set our C_Cpp.loggingLevel to "Debug" do you see messages about formatting input/output in the C/C++ section of the Output window?
thanks to your reply, @sean-mcmanus
Type: LanguageService
Describe the bug
I add a clang format file at root directory of source code. When pressing ctrl + a, then ctrl + k, ctrl + f, using edictor.action.formatselectoin to format file, the format style is correctly the same with using clang-format in command line. However, when pressing ctrl + shift + I, using edictor.action.formatdocument to format file, it differs strangely. It does not use the .clang-format file.
How to fix this odd behavior?
vscode User Setting
.clang-format