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
I've used this extension a lot previously (with great success), but on a recent machine the formatter seems to assume the ColumnLimit is quite small, that is, I notice a lot of line breaks for what I would consider relatively short lines. I tried to play around with the clang-format.style setting but couldn't notice any difference, so I cranked up the IndentWidth to see if the settings were being respected at all, and it turns out what I specified for clang-format.style had no impact on how the formatter behaved at all.
Interesting enough, if I run clang-format --style="{IndentWidth: 40, BasedOnStyle: Google, ColumnLimit: 160}" file.proto directly from the terminal then I see a huge amount of indentation (indicating the specified style is being respected).
How can I go about debugging this? It would be really nice to get the formatter to respect these options. I'm running this on a linux machine (Manjaro specifically).
Thanks,
The text was updated successfully, but these errors were encountered:
I just test this on a Windows machine (using VSCode with WSL) and I'm actually running into the same issue. I suppose I hadn't noticed it before because it turns out clang-format was not present in the WSL installation. Now that I have installed it I am running into the exact same issue.
Hello,
I've used this extension a lot previously (with great success), but on a recent machine the formatter seems to assume the ColumnLimit is quite small, that is, I notice a lot of line breaks for what I would consider relatively short lines. I tried to play around with the
clang-format.style
setting but couldn't notice any difference, so I cranked up theIndentWidth
to see if the settings were being respected at all, and it turns out what I specified forclang-format.style
had no impact on how the formatter behaved at all.Interesting enough, if I run
clang-format --style="{IndentWidth: 40, BasedOnStyle: Google, ColumnLimit: 160}" file.proto
directly from the terminal then I see a huge amount of indentation (indicating the specified style is being respected).Here is what I have in my
settings.json
file:How can I go about debugging this? It would be really nice to get the formatter to respect these options. I'm running this on a linux machine (Manjaro specifically).
Thanks,
The text was updated successfully, but these errors were encountered: