Reputation: 11317
Visual Studio has native integration for clang-format since 15.7 prev1.
I'm using 15.9.9 and nicely see the configuration in the options.
From my understanding, as 'Google' is selected in the formatting style, it should use either my .clang-format file which is in the root of my checkout or fallback to the hard-coded configuration with name 'Google'.
However, if I format my file: Ctrl+K, Ctrl+D, my file gets formatted using Whitesmiths; which is the brace configuration of my Visual Studio formatting.
Did I forget to configure something that allows me to use clang-format or is something horribly going wrong? If it is the last one, I appreciate some debugging tips.
Upvotes: 11
Views: 36014
Reputation: 11317
Strangely enough, this started to work without any extra changes after a couple of days.
Upvotes: 4