-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
clang-format does not work well #691
Comments
Hmm...I am not able to repro a problem on Windows and Linux. Could you give more specific details? Maybe there's some other requirement? |
I reviewed the code and fixed one bug which could cause this failure if there's a space before the {. Does removing any space before the { fix it? |
Thank you response. |
I am not able to repro the bug, so I need more repro details. |
Can you please try out 0.16.0 and look at the "C/C++" log channel of the Output window when your formatting fails? If you are unable to resolve your clang-format issues with the logging message, please reopen this issue and we can help you resolve it. |
I write
C_Cpp.clang_format_style": "{BasedOnStyle: Google,IndentWidth: 4,ColumnLimit: 0}
to settings.json.But clang-format does not format with IndentWidth option and ColumnLimit option.
clang-format by xaver works with these options.
Please fix this problem.
The text was updated successfully, but these errors were encountered: